The length of a rectangle is 5 inches longer than the width. The perimeter of the rectangle is 40 inches. What is the width of the rectangle, in inches?