How do we solve this question?

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!