Mrs. Jameson paid $22.50 for each student to visit an amusement park. Write an equation relating the total cost, y, and the number of students, x, attending the park.