we have to choose five chocolates,say, C1, C2, C3, C4 and C5. Now for C1 we can choose among three kinds of chocolates. Since the supply of chocolates is infinite, for C2, again we Can choose among three kinds of chocolates. Similarly for each of C3, C4, C5, we have three options. So total number of choices =3^5=243.
Now if we have a case like CCCCP and PCCCC , so then these cases are counted distinct but they should be same , so then how to proceed from here ?