A square and a rectangle have equal areas. The length of the rectangle is twice the length of the side of the square. The width of the rectangle is
2 centimeters shorter than the length of the side of the square. What is the length, in centimeters, of the side of the square?