A piece of wire 52cm long is cut into two parts , each of the wire is bent to form a square.If the sum of the area of the two squares is 89. Find the perimeter of each square .