Ok so if we have a total of $40 and each candy is $7 we want to find out how many times 7 will fit into 40.
7 x 1 = 7
7 x 2 = 14
7 x 3 = 21
7 x 4 = 28
7 x 5 = 35
We stop here…we stop because we only have 40 dollars and if we continue
7 x 6 = 42 we cannot buy 6 candies because we only have 40 dollars, we would need 42 dollars to get 6. So the answer will be 5 candies in total you can get even though you’ll still have 5 dollars left over. Hope this helps!