Let x = length of the side parallel to the side without fencing and let y = length of each of the two sides perpendicular to the house.
x + 2y = 240
So, x = 240 - 2y
Area = A = xy = (240 - 2y)(y) = -2y2 + 240y
Maximum area when A' = 0. -4y + 240 = 0 So, y = 60 m and x = 120 m.