Brenda is throwing a party. it costs $300 to rent the hall. It costs $35 per person for food. Write an equation to show the total cost of the party (y) based on the number of people invited (x).