Answer:
150 ft x 300 ft
Explanation:
Let x be the length of each of the two sides perpendicular to the river and y be the length of the size parallel to the river.
The total length of fencing is given by:

The area of rectangular pen is:

Finding the value of x for which the derivative of the area function is zero gives us the value of x needed to maximize the area:

For x=150, the value of y is:

The dimensions that maximize the area are 150 ft x 300 ft.