The lowest coordinate point for x can be (-4, 6).
Go horizontally [from -4] to select a point and vertically [from -4] to select another point.
Since you have already chosen -4 as x-coordinate, you have horizontally 9 points [from -3 to + 5 inclusive, i.e., 9 points].
Similarly, since you have chosen 6 as y-coordinate, you have vertically 10 points [from 7 to 16 inclusive, i.e., 10 points].
So, at (-4, 6), you have 10*9 or 90 right triangles.
Now shift the point right to another point, (i.e.-3, 6). Again, you have 9 points; although P now moves by 1 point horizontally, total points do not decrease, because it can now take -4's original position at left also.
Similarly for (-3, 6), it has 10 points vertically. Again, we have 90 triangles.
we can conclude that we have 10 values for x coordinate & 11 values for y-coordinate. Total 10*11=110 points.
No. of total triangles = 110*90 = 9900