A rectangular garden has a length that is five less than twice the width. The garden perimeter is 50 meters. What are the dimensions of the garden?