In a $2 × 4$ rectangle grid shown below, each cell is a rectangle. How many rectangles can be observed in the grid?
My attempt:
I found a formula somewhere,
Number of rectangles are $= m(m+1)n(n+1)/4 = 2\times4\times3\times5/4 = 30$.
Can you please explain this?
Upadte -
The post How many rectangles or triangles. looks similar, but that has $3 \times 4$ grid and I need more variant explanation.
