The diagram shown contains octagons and squares only. The ratio of the number of octagons to the number of squares is
(A) $1: 1$
(B) $2: 1$
(C) $25: 12$
(D) $5: 4$
(E) $5: 3$

![](https://cdn.mathpix.com/cropped/2024_04_20_46ead6524a8d61e21c51g-033.jpg?height=290&width=352&top_left_y=234&top_left_x=1361)
In the diagram, there are 4 rows of octagons and each row contains 5 octagons.

Therefore, the total number of octagons in the diagram is $4 \times 5=20$.

In the diagram, there are 3 rows of squares and each row contains 4 squares.

Therefore, the total number of squares in the diagram is $3 \times 4=12$.

The ratio of the number of octagons to the number of squares is $20: 12$ or $5: 3$.

ANSWER: (E)