A square and a rectangle have the same area. The length of the rectangle is 3 meters more than the length of a side of the square. The width of the rectangle is 2 meters less than the length of a side of the square. What is the length of each side of the square?