Answer:
The Function formula is given by
.
Explanation:
Given:
Number of candies eaten each time he has snacks = 8
Number of snacks ate = 18
Now Number of candies eaten will be equal to number of snacks he ate multiplied by number of candies eaten each time he ate snacks
Hence. Number of candies he ate in 18 snacks = 18* 8 = 144 candies
Also given that 6 candies are remaining after eating 18 snacks;
Total Number of candies at the beginning will be = Number of candies he ate in 18 snacks + Number of candies remaining after 18 snacks
Total Number of candies at the beginning will be = 144 + 6 = 150 candies
Now, let The number of pieces of candy remaining in the bag be 'c'
Also Let the number of snacks Tyrone eats be 's'
Since it has been given that in number of candies in each snack is 8 candies.
Therefore,In 's' snacks , candies will be eaten by him =

Total number of candies = 150
Now Remaining candies 'c' is equal to Total number of candies minus number of candies eaten in 's' snacks.
framing in equation form we get;
Remaining candies

Hence the Function formula is given by
.