Let's say I have 10 apples, 8 oranges and 7 bananas.
I want to know in how many ways I can spread them over four distinct boxes.
So my approach would be to immediately consider this as an anagram permutation problem:
AAAAAAAAAA|OOOOOOOO|BBBB|BBB
The above example would give us 10 apples on the first box, 8 oranges on the second box, 4 bananas on the third box, and then 3 bananas on the fourth box.
So the solution would be simply $$\frac{( 10 + 8 + 7 + 3)!}{10! * 8! * 7! * 3!} = \frac{28!}{10! * 8! * 7! * 3!}$$
However my teacher told me this leads to a wrong conclusion, although he didn't explain me why.
Then he went on to show me the right way to do this.
So I'd like to know not what would be the right way to solve this ( as I already know it ) but why my proposed solution doesn't work.
You have to chose $10$ items from the $28$ to be apples, $8$ of the rest to be oranges and $7$ of the remaining ten to be bananas. Then you have fruit in boxes. That's the formula you have given. Your problem then is that you can rearrange the fruit in the first box without changing your answer, but you don't know the number of fruit in the first box, let alone the different types, so you know there are fewer arrangements than you first thought, but have reached a bit of a dead end in the analysis.
Rather allocate the apples to boxes, then the oranges to boxes and finally the bananas to boxes. Then you keep better control over the indistinguishable things before you mix them up.