let the lengths of the sides be and ( the length of the sides with heavy duty fencing)

Then cost:

Area:

Now to find the that gives maximum area you differentiate with respect to x and set this to zero and solve for the critical point/s etc.

Then use this area maximising to find the corresponding

CB