The number of triangles that can be formed by 5 points in a line and 3 points on a parallel line is
8C3
8C3-5C3
8C3-5C3-1
The required number of ways = 8C3−5C3−3C3
{Since total points are 8, but 5 are collinear and other three are also collinear}