400 yards of fence = total fencing
400 = 2 widths + 2 heights
Since one side (width) is along the river, and the river bank acts as one side of the rectangle, the fence will be used in 3 sides:
400 = w+2h
Solving for h:
400-w=2h
(400-w)/2 = h
h= (400-w)/2 (a)
h= 200-1/2w (simplified)
To express the area:
Area of a rectangle : height x width
Since h = 200-1/2w
A = (200-1/2w) w
A = 200w-1/2w^2 (b)