A catering service charges a base fee of $350 for the first three hours of an event, plus an hourly rate for each additional hour. The total cost for a 7-hour event is $650. Which function gives the total cost, in dollars, for hours of an event, where ?