6. The perimeter of a square is twice the circumference of a circle. Then the ratio of the area of the square to the area of the circle is ( ).
(A) $2 \pi$
(B) $\pi$
(C) 4
(D) 2
6.B

Translate the text above into English, please retain the original text's line breaks and format, and output the translation result directly.