Let be the two sets of parallel lines. A paralleogram is formed by a pair of lines from and a pair of lines from . So, the number of parallelograms depends on how many pairs can take from and .
This number is
Generally, if there is a set of n parallel lines and another set of m parallel lines, the number of parallelograms is