The length of a rectangle is five inches more than twice the width. The perimeter is 24 inches. Find the length and width.​