Consider 4 boxes, where each box contains 3 red balls and 2 blue balls. Assume that all 20 balls are distinct. In how many different ways can 10 balls be chosen from these 4 boxes so that from each box at least one red ball and one blue ball are chosen?
Let be the number of balls selected from the box, .
Each box must contribute at least one red and one blue, so and (since a box contains only 5 balls).
The total number of balls to be chosen is
Write , where and . Substituting in gives
Equation distributes 2 identical “extra” units among 4 boxes, each box receiving at most 3. Only two types of distributions are possible:
Case 1: One box gets both extras ( and its permutations).
Case 2: Two boxes get one extra each ( and its permutations).
Translate back to values.
Case 1: Pattern (one box contributes 4 balls, the other three contribute 2 each).
Number of ways to choose which box is the “4” box: .
Case 2: Pattern (two boxes contribute 3 balls each).
Number of ways to choose the two “3” boxes: .
Next, count the colour-wise selections inside a single box. Let denote “ red and blue” chosen from that box (all balls are distinct).
Possible pairs and their counts:
The function gives the number of ways to choose balls from one box when that box contributes balls.
Case 1 (\{4,2,2,2\}):
Product of ways for a fixed box pattern: .
Including the 4 possible positions of the “4” box:
Total ways .
Case 2 (\{3,3,2,2\}):
Product of ways for a fixed pattern: .
Including the choices of the two “3” boxes:
Total ways .
Add the two cases:
Hence the required number of ways equals .
Option A which is: 21816
Tagged Combinations and selections with conditions. Machine-assigned, so read it as a strong shortlist rather than a verdict.