We are given 4 different items with the following frequency:
Item A: 9 times Item B: 9 times Item C: 6 times Item D: 3 times
How many combinations of these items can we produce that contain at most 3 different items, e.g. Combination 1: 0 times item A, 1 times item B, 3 times item C, 3 times item D.
My solution is $10*10*7*4-9*9*6*3$. We have 10 ways of taking item A (either 0 times, 1, times, ..., 9 times), 10 ways of taking item B, 7 of taking item C and 3 of taking item D. From this solution I subtract all the combinations that take exactly 4 different items.
But my friend states that the solution should be $2*(10*7*4)+10*10*7+10*10*4$ where you count the possible combination for each case of leaving this item out.
Which one of us is right?