1) For this question, the number of ways of picking 6 candies out of 24 is not that would be the number different sequences you can get by picking six 6 but replacing each one as you put it back. The number of ways of choosing candies from a bag of can be shown to be

You can find an explanation of this here: Combination - Wikipedia, the free encyclopedia