The sum of the areas of the rectangle and the square is 2x^2+ 4x +1. Given that this sum is 49 cm^2, how do you find x and the area of the square?