A car rental company charges a flat fee of $50 for renting a car for a day plus an additional charge of $0.20 per mile driven. If the total cost $C$ (in dollars) for renting the car and driving $d$ miles can be expressed as a linear function, what is the equation that models this situation?