10q-3r=14, 10q=3r-14 10q=3r/10+14/10
q=3/10r+7/5
The answer to this problem is

First, add or subtract all variables
y2 + 4y - 16y + 3y = -7y
-7y + 2 is your answer
Lets work backwards, he had $5 after it all, and spent $1.25 on a snack, so we add that to the remainder, which is $6.25. then he spent half of that on whatever stuff he likes, so add $6.25 and $6.25, which is $12.50