The length of a rectangle is 4 centimeters less than twice its width. The perimeter of the rectangle is 34 cm. What are the dimensions of the rectangle?