The number in the middle of the first triangle is found with the folowing calculation: 80 / (35 - 15) = 4
The number in the middle of the second triangle is found with the folowing calculation: 39 / (23 - 10) = 3
Therefore the question mark should be replaced with the number: 10