pyq/2017/csat/38

There are 4 horizontal and 4 vertical lines, parallel and equidistant to one another on a board. What is the maximum number of rectangles and squares that can be formed?

(A) 16

(B) 24

(C) 36

(D) 42