Briana drew a rectangle with a width 5 inches shorter than its length. She measured the perimeter of the rectangle and found it to be 14 inches. Calculate the width of the rectangle.