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
Replace u,x and y withyour values
u+xy=2+9*6=2+54=56
41.1 is the answer to this question.
The value of a is -6
The value of b is 48