Answer: We know:
the triangle gardern(garden A) and the square garden(garden B) have the same perimeter.
This may sound obv, but it's important: garden A has 1 less side then garden B, which is why it can have longer sides but the same perimeter.
So side A1 + side A2 + side A3 = side B1 + side B2 + side B3 + side B4.
A1 + A2 + A3 = B1 + B2 + B3 + 15(the extra length on the triangle sides)
Since B is a square, B = 15 m by 15 m.
I don't know enough about triangle to put the dementions, but it's an equilateral triangle so the sides are 20 m each. Hope that helps! :)