Option (C) is correct.
Explanation:
Count all the groups of three posts, sorted by how many posts come from the wall.
- Three wall posts: PQR, PQS, PRS, QRS. That is 4 groups.
- Two wall posts and one inside post: the 6 pairs PQ, PR, PS, QR, QS, RS, each with U or V. That is 6×2=12 groups.
- One wall post with both U and V: PUV, QUV, RUV, SUV. That is 4 groups.
Altogether there are 4+12+4=20 groups.
The 4 groups of three wall posts all lie on one straight line, and three vertices on a straight line give no triangle. Every other group has at least one post off the wall, so it forms a triangle:
20−4=16
Lata can make 16 different triangles.
Why the other options are wrong
- (A) 20 counts every group of three posts, including the 4 groups of wall posts that lie on one straight line.
- (B) 19 removes only one straight-line group, as if only PQR were a problem. With four posts on the wall there are four such groups: PQR, PQS, PRS and QRS.
- (D) 12 is the number of triangles with exactly two posts on the wall. It leaves out the 4 triangles PUV, QUV, RUV and SUV.