The number in the middle of the first triangle is found with the folowing calculation: 19 * 2 - 30 = 8
The number in the middle of the second triangle is found with the folowing calculation: : 3 * 21 - 24 = 39
Therefore the question mark should be replaced with the number: 3