The number in the middle of the first triangle is found with the folowing calculation: 13 + -3 + 17 = 27
The number in the middle of the second triangle is found with the folowing calculation: : 30 + -9 + 9 = 30
Therefore the question mark should be replaced with the number: 30