The number in the middle of the first triangle is found with the folowing calculation: 165 / (35 - 2) = 5
The number in the middle of the second triangle is found with the folowing calculation: 112 / (27 - 13) = 8
Therefore the question mark should be replaced with the number: 8