Let L = Length
Let W = Width
Let P = Perimeter = 2L + 2W
Let A = Area = 5(43560) = 217800 = L(W)
You have 2600 ft to enclose a rectangular region of 5 acres (1 acre = 43560 ft2) that lies along a straight river, with the river serving as one side of the enclosure so
Instead of
P = 2L + 2W
You have
P = L + 2W
2600 = L + 2W
L = 2600 - 2W
Substitute this in the area
217800 = W(2600 - 2W)
217800 = 2600W - 2W2
Move everything over to one side of the equal sign to form a quadratic
217800 - 2600W + 2W2 = 0
Divide both sides of the equation above by 2
108900 - 1300W + W2 = 0
Factoring
(W - 1210)(W - 90) = 0
W = 90 ft
L = 2600 - 2(90) = 2600 - 180 = 2420 ft; for one long Length and 2 short Widths.When Typically Length represents the longer side.
OR
W = 1210 ft
L = 2600 - 2(1210) = 180 ft; for two large Widths making a for a very wide enclosure with a short length.
I hope this helps.
Maybe you get more value out having the longer length since whatever is in your space has easier and greater access to the water.