The combined area of a square and a rectangle is 355 square centimeters. The width of the rectangle is 5 centimeters more than the length of a side of the square, and the length of the rectangle is 2 centimeters more than its width. Find the dimensions of the square and the rectangle.