Write an equation to represent the relationship between the total cost of (y) and the number of bags of carmel corn

(x).

y = 3x