+I am just getting started in my combinatorics class and I came across the following problem in my textbook that I am looking for some help with, thanks!
How many ways are there to have a collection of $10$ fruits from a large pile of identical oranges, apples, peaches, bananas and pears if the collection should include exactly two kinds of fruits?
Since the order is not important here we can systematically list the different combinations to see the different combinations.
How can I use this equation which I believe is the equation I need
$$C(n,r) = \frac{n!}{(n-r)!r!}$$
To choose $2$ kinds of fruits from five, you have $C(5,2)=10$ choices.
Since the numbers of the two fruits may be $(1,9), (2,8), (3,7), \dots (9,1)$, there are $9$ possibilities.
The total number of ways is $10\times 9=90$.