A car rental company charges a flat fee of $50 and an additional $0.20 per mile driven. If the total cost for renting a car and driving it for a certain number of miles is $78, how many miles did the customer drive? Let's think step by step and output the final answer within \boxed{}.
user