Question 29
The diagram shows a grid 3 units high and 4 units wide made with 31 matches. A grid $a$ units high and $b$ units wide has positive integer dimensions $a<b$. Find the sum of the areas of all such rectangles that can each be made with exactly 337 matches.

