Option (B) is correct.
Explanation:
First list every group of three posts.
- Groups with both S and T: PST, QST, RST. That is 3 groups.
- Groups with exactly one of S and T: choose two of P, Q, R (PQ, PR or QR) and then S or T. That is 3×2=6 groups.
- Groups with neither S nor T: only PQR. That is 1 group.
So there are 3+6+1=10 groups of three posts.
But P, Q and R lie on one straight line. When the three vertices lie on a straight line, the rope just lies along the fence and there is no triangle. Every other group has at least one post off the fence, so it does make a triangle.
10−1=9
Mohan can make 9 different triangles.
Why the other options are wrong
- (A) 10 counts the group PQR as well. But P, Q and R lie on one straight line, so they do not make a triangle.
- (C) 7 comes from removing three groups. Only one group, PQR, lies on a straight line; groups such as PQS have S off the fence and do make triangles.
- (D) 6 counts only the triangles with exactly one post off the fence. It leaves out PST, QST and RST, which use both S and T.