The length of a rectangle is 12 inches more than its width. What is the width of the rectangle if the perimeter is 42 inches?