Hi Holly, let's make the example a little easier to helpl you understand.

Let's say we only had one sheep pen fenced by 500 feet. Calling the length and the width then it makes sense that the total perimeter of the fence is .

We know the area of a rectangle is so looking back at the first equation and solving for we get

Substituting this back into the area equation for we get

Do you follow?