c = 150 - 8s is the required function
Solution:
Given that,
Tyrone takes 8 pieces of candy from the bag each time he snacks
After eating 18 snacks, there are only 6 pieces of candy remaining in the bag
The number c of pieces of candy remaining in the bag is a function of s, the number of snacks Tyrone eats.
Therefore,
"c" is the number of pieces of candy remaining in the bag
"s" is the number of snacks Tyrone eats
Thus,
total number of candy in the bag =
Remaining candy in the bag = Total candy - candy he ate
c = 150 - 8s
Thus the function is found