A rectangular garden is to be surrounded by a fence joined to a 3 m long wall on one side. The opposite side to the wall has a 1 m opening ( for a later gate). There is40 m of fencing available. To maximize the garden area, the length of fence to be added to the wall side is:

Thank you.