Attachment:
screenshot.1138.jpg [ 39.58 KiB | Viewed 1992 times ]
A width of the rectangle (the biggest line)
B height of the rectangle (the smallest line)
C width of the square
We know that 2 (A + B) = 18√2, so A + B = 9√2
We can also infer that A = 2B since A = 2 diagonal of the square and B = 1 diagonal of the square (see it on the figure to understand it more easily)
A = 3√2 and B = 6√2
From Pythagor, we have C² + C² = B²
<=> 2c² = (3√2)²
<=> 2c² = 9 * 2
<=> C = 3
So the perimeter of each square is 4 * 3 = 12