a rectangular garden has a diagonal measuring 40 m. if the length of the garden is three times the width ,find the dimensions of the garden.