Counting & ProbabilityMedium
Counting & Probability · Medium problem
A store sells distinct types of fruit. In how many ways can a customer buy exactly pieces of fruit such that they buy at least one apple, at least one banana, and at most cherries? (Apples, bananas, and cherries are three of the five types; the other two types are unrestricted, allowing zero.)