8.1. From a $7 \times 7$ square grid, an equal number of $2 \times 2$ squares and $1 \times 4$ rectangles were cut out along the grid lines. What is the maximum number of these figures that could have been cut out?