The perimeter of a rectangle is 40 m. The length is 2 m more than two times the width. Find the length and the width of the rectangle.