Mike took a taxi from his home to the airport. The taxi driver charged an initail $6 plus $3 per mile. The total fare was $24, not including the tip. How many miles did Mike travel by taxi on this ride?