The number in the middle of the first triangle is found with the folowing calculation: 342 / (30 + 8) = 9
The number in the middle of the second triangle is found with the folowing calculation: 280 / (26 + 2) = 10
Therefore the question mark should be replaced with the number: 10