if the length of one side of a square is increased by 1 inch and that of another side is diminished by 2 inches, a rectangle is formed whose area is 180 inches. find the length of a side of the square