The perimeter of a rectangle is equal to 28 cm. two squares are constructed such that two adjacent sides of the rectangle are each also the side of one of the squares. the combined area of the two squares is 116 cm². find the lengths of the sides of the squares.