Lulu has exactly enough fencing to go around her rectangular garden. She has 40 m of fencing and the garden is 8 m wide. What is the length of her garden?