Mike took a taxi from his home to the airport. The initial fee just to enter the taxi was $6 and then a charge of $3 per mile traveled. The total fee after the taxi arrived at the airport was $24, not including gratuity. How many miles did Mike travel during his trip from his home to the airport.