A rental car company that rents cars for local-only use charges $30 plus $0.20 for each mile the rental car is driven. If a customer gives the rental attendant $100 for a charge of $42, how many miles did the customer drive?