A farmer wants to make three identical rectangular enclosures along a straight river, as in the diagram shown below. If he has 960 yards of fence, and if the sides along the river need no fence, what should be the dimensions of each enclosure if the total area is to be maximized?