An electrician charges a set fee of $50 for every house call and then charges an additional hourly rate. One day, the electrician earned a total of $400 for a 5 hour job. Write an equation for C, in terms of t, representing the total cost of the electrician's services if the electrician spends t hours at the house working.