The senior class officers have figured out that the prom will cost $5,000 for location rental and decorations and another $42 per person for food. Write an equation in general form that expresses the cost of the prom in dollars, y, as a function of the number of people who attend, x.