Right triangle PQR is to be constructed in the xy-plane so that the right angle is at P and line PR is parallel to the x-axis. The x and y coordinates of P, Q, and R are to be integers that satisfy the inequalities: -4 <= x <= 5 and 6 <= y <= 16. How many different triangles could be constructed with these properties?
A. 110
B. 1,100
C. 9,900
D. 10,000
GATE 2015 · General Aptitude · Triangles · medium
Answer: 9,900 distinct right triangles can be constructed.
Determine the structure of the triangle: PR horizontal means P=(x_P, y_P) and R=(x_R, y_P) with x_R != x_P. PQ perpendicular to PR means PQ is vertical, so Q=(x_P, y_Q) with y_Q != y_P.
Count x-coordinate choices: x_P: 10 choices. x_R: must differ from x_P, so 10 - 1 = 9 choices.
Count y-coordinate choices: y_P: 11 choices. y_Q: must differ from y_P, so 11 - 1 = 10 choices.