The number in the middle of the first triangle is found with the folowing calculation: 19 - -10 - 15 = 14
The number in the middle of the second triangle is found with the folowing calculation: : 39 - 2 - 2 = 35
Therefore the question mark should be replaced with the number: 2