Five hundred yards of fence is to be used to enclose a rectangular area next to a straight river. The river bank acts as one side of the rectangle, and the fence is used to make the other three sides of the rectangle. Suppose the width w in yards of the rectangle is along the river bank.