# Drawing some squares

Geometry Level 5

Above is a picture of a $$3 \times 3$$ dot square matrix, which, when the outer dots are connected, form a square. In every vertical and horizontal line that can be drawn on this grid, the dots are equally spaced.

How many distinct squares can be drawn from this grid of nine dots if at least two of the squares' corners are from this grid?

×