Julie bought a drink for $2.99, two bags of chips for $1.29 each, and some gasoline at a convenience store. The price of gasoline was $2.49 per gallon.

If x represents the number of gallons of gasoline she purchased, which of the following equations can be used to find how much Julie spent at the convenience store?
A.
y = 5.57x + 2.49
B.
y = 2.49x + 5.57
C.
y = 2.49x + 4.28