The length of a rectangle is 5 m less than three times the width, and the area of the rectangle is 50 m². Find the dimensions of the rectangle.