In order to calculate the amount of material needed to fence the garden, we can calculate the perimeter of the garden.
The perimeter is the addition of all sides that conform a figure, then,

However, since the side against the house does not need fencing,

Answer:
there are 19.6m needed in order to fence the garden.