If the area of the larger square is subtracted from twice the area of the smaller square, then the result is 8 cm^2. However, if 3 times the area of the smaller square is added to 2 times the area of the larger square, then the result is 236 cm^2. Determine the side of the two squares.