A rectangle has a perimeter of 24 ft. The length is 4 ft longer than the width. What is the length of the rectangle?