The length that results in the maximum area is 39 feet.
<u><em>Explanation</em></u>
Lets assume, length of the rectangle is
feet and width of the rectangle is
feet.
As the length and width must add up to 78 feet, so the equation will be...
Solving equation (1) for y :
Now the area of the rectangle,
will be maximum when
Now taking derivative of equation(2) with respect to
......

If
, then

If
, then 
So, both length and width will be 39 feet for getting maximum area.
The length that results in the maximum area is 39 feet.