The length of a rectangle is 5 inches less than three times its width. The perimeter is 86 inches. Find the dimensions, in inches, of the rectangle.