The length of a rectangle is 6 inches longer than the width. If the perimeter of the rectangle is 96 ​inches, find the measures of the length and width.