The number in the middle of the first triangle is found with the folowing calculation: 126 / 18 - 8 = -1
The number in the middle of the second triangle is found with the folowing calculation: : 5 / 1 - 5 = 0
Therefore the question mark should be replaced with the number: 5