Okay, you did not answer my question but I suppose it is same to assume you want to put the candy in the lunch boxes.
I have 3 pieces of candy to place in 4 lunch boxes.
In how many ways can I do this if:
(a) The candies are all different and the lunch boxes are all different?
Well you can put the first peice in any lunch box that is 4 choices, the same with the second 3rd so
it wll be 4*4*4 = 64 ways
(b) The candies are all the same and the lunch boxes are all the same?
1,1,1,0
2,1,0,0
3,0,0,0
That is 3 ways because the only thing that matters is how many lollies is in each box.
(c) The candies are all the same and the lunch boxes are all different?
3 from above * 4! = 3*4*3*2*1 I think (not really sure )
(d) The candies are all different and the lunch boxes are all the same?
3*3! maybe
(e) Exactly two of the candies are the same (but the third is different) and all of the lunch boxes are different?
3*4! * 3 I'm guessing. :))