There are 18 different ways in which the cashier can put the items in the bags.
There are some cases to consider.
1) The 4 items go in the same bag, there are 3 permutations for this case.
2) 3 items on one bag, and 1 item on other bag (there are 6 permutations for this case).
3) 2 items on one bag, 2 items on other bag (6 permutations).
4) 2 items on one bag, 1 item on each of the other two bags (3 permutations for this case).
We just need to count the total number of permutations, which is:
3 + 6 + 6 + 3 = 18
There are 18 different ways in which the cashier can put the items in the bags.
If you want to learn more about permutations:
https://brainly.com/question/11732255
#SPJ1