Write the equation and solve the problem. The length of a rectangle is four less than twice the width. If the perimeter is 34, find the length and the width.