I only know the slope intercept form ones:
y+7=-2x-3
y=-2x-10
y-5=3x-2
y=3x+3
Hope this helps at least a little :3
-1/2 is rational, have a good day
So hmm notice the picture below
the side of the river, needs no fencing, since the river is there
and thus the perimeter of the pen, is just w + w + l, or 2w+l
thus

take the derivative of P(w), set it to zero, and check for any critical points, then run a first-derivative test for any minimum