Answer
See answer below
Work Step by Step
The independent variable is the Number of Snacks Purchased (s). The dependent variable is the Total Cost (C).
Each time $s$ increases by 1, $C$ increases by 3. The total cost is the starting cost plus three times the number of snacks purchased: $y= 18+3x$