An equation that relates the number of bags, x, to the cost, y is y = 5x.
What is an equation?
An equation is a mathematical statement that claims that the two sides are equal.
An equation involves two or more variables that require some mathematical operations to obtain their equivalent value.
Therefore, an equation contains numbers, variables, and operators, which show a value after the mathematical operations.
Data and Calculations:
Let the number of bags for the class = x (number of students)
Let the unit cost of a bag = $5
Let y = the total cost
Equation, y = 5x
Thus, an equation that relates the number of bags, x, to the cost, y is y = 5x.
Learn more about equations at https://brainly.com/question/2972832
#SPJ1