Solving the equation for y, it is found that the amount that John spends on snacks is given by:
[tex]y = 8x + 15[/tex]
---------------------------
The relation of these measures is given by the equation:
[tex]8x + 15 - y = 0[/tex]
The amount spent on snacks is y, thus, we solve the equation for y.
[tex]8x + 15 - y = 0[/tex]
[tex]- y = -8x - 15[/tex]
[tex]y = 8x + 15[/tex]
A similar problem is given at https://brainly.com/question/5123313