A rectangle has an area of 24 square centimeters. The width of the rectangle is 3 centimeters. What is the length of the rectangle?