GRE Big Book Test 3 Section 6 Q19

How do we solve this question?

image

triangle PTS is an equilateral triangle
Let a be each side of this triangle so 3a=30(perimeter)
a=10 and since a=side of the square as well area of square = 10*10=100

Got it. Thanks!