There are three coplanar parallel lines. If any p points are taken on each the lines, the maximum number of triangles with vertices at these points is
The number of triangles with vertices on different lines
The number of triangles with 2 vertices on one line and the third vertex on any of the other two lines