In a supermarket, there are five different kinds of candy bags to choose from, but the supermarket has only six bags left of three of the kinds as well as seven bags of the last two kinds. Show that you can choose ten candy bags in 866 ways.
Explanation
We can select seven or more of a particular kind by first selecting seven of a kind and then choose three bags freely among all five kinds. This can be done in 3+5-1 choose 5-1 ways = 35 ways. You can choose 8 or more of a particular kind by first selecting 8 of the kind and there after 2 bags among all five kinds, which is 2+5-1 choose 5-1 ways=15 ways. Therefore there are 1001-3*35-2*15=866 combinations
I understand the explanation. What I don't get if I try to visualize it. Then I have five boxes which i will seperate by L.
L L L L
Then you can do as an example 8L
and then you have from before 15 combinations for example 8L1L0L1L0
But cant you do this with 8 being in every box like
For example at first 8 is in the first box
But you can also do it where L is in the second box like 0L8L and so on
And then it shuld be 5*15 ways. Or what am I doing wrong? Thanks!