How many rectangles?

By drawing 5 horizontal and four vertical lines, one can form 12 rectangles. What is the greatest number of rectangles that can be formed by drawing 15 lines?

Problem



Image
How many Rectangles?
By drawing $9$ lines, $5$ horizontal and $4$ vertical, one can form $12$ small rectangles, as shown on the right. What is the greatest possible number of small rectangles that one can form by drawing $15$ lines, either horizontal or vertical?

If you liked this problem, here is an NRICH task that challenges you to use similar mathematical ideas.