Solution:
Let the sides of the two squares be x m and y m.
Therefore, their perimeter will be 4x and 4y respectively
And area of the squares will be respectively.
Given,
Also,
As we know, the side of a square cannot be negative.
Hence, the sides of the squares are 12 m and (12 + 6) m = 18 m.