The number in the middle of the first triangle is found with the folowing calculation: 21 * 3 * 8 = 504
The number in the middle of the second triangle is found with the folowing calculation: : 6 * 21 * -9 = -1134
Therefore the question mark should be replaced with the number: 21