A farmer has 120 meters of fencing to enclose a rectangular field that borders a straight river; no fence is needed along the river. If the two equal sides perpendicular to the river are each w meters long, which value of w produces the largest possible area of the field?
a) 60 m
b) 30 m
c) 40 m
d) 20 m