A rectangle has a length of 12 3/4 inches. The perimeter is 35 1/2 inches. Find the width of the rectangle.