Option (D) is correct.
Explanation: Count the distinct points first. O lies on both lines, so it is counted once:
5+4−1+3=11
All triples: 11C3=165.
Triples that give no triangle are the collinear ones. Any 3 of the 5 points on l: 5C3=10. Any 3 of the 4 points on m: 4C3=4. No triple lies on both lines, because the lines share only the point O.
165−10−4=151
Why the other options are wrong
- (A) 12C3−10−4=220−14=206 counts O twice, as if there were 12 points. O is one point that happens to lie on both lines.
- (B) 165−2=163 removes only one triple per line. Every choice of 3 of the points on a line fails to form a triangle: 10 on l and 4 on m.
- (C) 165 counts every triple of points. Three points on the same line do not form a triangle, so the collinear triples must be removed.