The graph shows the amount of money paid when purchasing bags of caramel corn at the zoo:

A graph is shown. The x-axis is labeled from 0 to 9. The y-axis is labeled from 0 to 10. The four points shown on the graph are on ordered pairs 0, 0 and 1, 3 and 2, 6 and 3, 9. These points are joined by a line. The label on the x-axis is Bags of caramel corn. The title on the y-axis is Total cost in dollars.
Write an equation to represent the relationship between the total cost (y) and the number of bags of caramel corn (x). (4 points)

y = one-half x

y = 2x

y = 3x

y = one-third x

The correct equation to represent the relationship between the total cost (y) and the number of bags of caramel corn (x) is:

y = 3x