The length of a rectangle is 2 less than twice the width. The perimeter of the rectangle is 38. Find the length and the width of the rectangle.