p points are chosen on each of the three coplanar lines. The maximum number of triangles formed with vertices at these points is
p3+3p2
12(p3+ p)
p32(5p−3)
p2(4p−3)
The maximum number of triangles formed with vertices at “p” points is p2(4p−3)