A bag contains 45 beans of three different varieties. Each variety is represented 15 times in the bag. You grab 9 beans out of the bag.
(a) Count the number of ways that each variety can be represented exactly 3 times in your sample.
(b) Count the number of ways that only one variety appears in your sample.