The number in the middle of the first triangle is found with the folowing calculation: (34 - 16) * 30 = 540

The number in the middle of the second triangle is found with the folowing calculation: : (9 - 24) * -12 = 180

Therefore the question mark should be replaced with the number: -12