The number in the middle of the first triangle is found with the folowing calculation: 18 + -7 + 9 = 20
The number in the middle of the second triangle is found with the folowing calculation: : 30 + 25 + -8 = 47
Therefore the question mark should be replaced with the number: -8