Problem:
How many triangles do $m$ lines form if
a) Every two lines intersect and no three lines intersect at one point.
b) There are $n$ lines among $m$ lines that are parallel to each other. No other line is parallel to these $n$ lines, and no other two lines are parallel to each other. Again no three lines intersect at one point.
Thank you.