plzz help ill give brainliest

Answer:
c= 150 - 8s
Step-by-step explanation:
Step 1
+ Each time he snacks, he eats 8 pieces.
+ After 18 times of snack, that means: he ate 18*8= 144 pieces
+ And there are only 6 remainder, the total of pieces is 144+ 6 = 150 pieces.
Step 2
+ We note s- the number of snack that he eats and then remainder of pieces of candy is c
So we have: 150 = 8*s + c
or c= 150 - 8s
The answer is c= 150 - 8s