Assertion (A): All squares are rectangles. Reason (R): Rectangles have four sides. Which of the following is correct?

Answer: B. Both A and R are true, but R is not the correct explanation of A.
The assertion is true as all squares are indeed rectangles, but the reason does not specifically explain why squares are rectangles.