[Math] Confusing combination-permutations question

permutations

In a shop there are five types of ice-creams available. A child buys
six ice-creams. Is it true that the number of different ways the child
can buy six ice creams is equal to the number of different ways of
arranging 6 A's and 4 B's in a row?

I tried it as follows:

The child problem-
There are five kinds of ice-creams, so the child can select six ice-creams in $5^6=15625$ ways.

A's and B's problem-
There are 6 A's and 4 B's. We can place these 10 items in a row in 10!/6!4! ways, which is equal to 210.

But the actual answer is true. How can it be? Where am I wrong?

Best Answer

The answer provided by you is wrong. The count of $5^6$ selects and arranges 6 ice-creams in a order after selecting from 5 different ice-creams. But we want to get no of ways by which the child can buy 6 ice-creams and not to arrange them.

The correct approach can be as follows as the total no of ice creams of each type are unknown .

Let no of ice-creams bought of each type as $a,b,c,d,e$ .So, $$a+b+c+d+e=6$$ as boy needs 6 ice-creams. And thus answer is $10_{C_4}$ . Which is same as arranging 6A's and 4B's in a row.