Half the perimeter of a rectangular garden, whose length is 8 m more than its width, is 40 m. Find the dimensions of the garden.