The area of the 3 gardens is calculated by:

......(A)

The fence of all 3 gardens is calculated by:

......(B)

Solve (B) for l. Plug in this term into equation (A):

To get the maximum area determine the first derivation of a and solve the equation for . I've got

That means the maximum area is