The perimeter, P, of a rectangle is equal to twice the sum of the length and width of the rectangle. Determine the width of a rectangle with a perimeter of 34 inches and a length of 5 inches. In your final answer, include all necessary calculations.