find the sides of the two squares.