Let be the perimeter of one of the squares (length of one of the pieces of wire).
Its side length is therefore .
Thus its area is
.
Let be the perimeter of the other piece.
Clearly .
Its side length is therefore .
Thus its area is
.
We also know that
Therefore
.
Since you can not have a negative length
.
Remembering that the other length
.
Put this into the calculator and you will know how many cm this length is.