The answer to this question is 12
What's the question you're asking?
Https://youtu.be/5C9LBF3b65s this should help you understand it
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