Question
Question: Let $A = \{1, 2, 3\}, B = \{4, 5, 6\}, C = \{7, 8, 9\}$ and $D = \{1, 2, 3, 4, 5, ... 10\}$, then to...
Let A={1,2,3},B={4,5,6},C={7,8,9} and D={1,2,3,4,5,...10}, then total number of subsets of D having exactly one element from each of sets A, B and C is equal to

54
Solution
Let A={1,2,3},B={4,5,6},C={7,8,9}, and D={1,2,3,4,5,...,10}.
We are looking for the number of subsets S of D such that S contains exactly one element from A, exactly one element from B, and exactly one element from C. This means ∣S∩A∣=1, ∣S∩B∣=1, and ∣S∩C∣=1.
Let the element chosen from A be a∈A. There are ∣A∣=3 choices for a. Let the element chosen from B be b∈B. There are ∣B∣=3 choices for b. Let the element chosen from C be c∈C. There are ∣C∣=3 choices for c.
Since A, B, and C are disjoint sets, the elements a, b, and c are distinct. Any subset S satisfying the conditions must contain the set {a,b,c} for some choice of a∈A, b∈B, and c∈C. So, S must be of the form {a,b,c}∪S′, where S′ is a subset of D∖{a,b,c}.
Now consider the conditions ∣S∩A∣=1, ∣S∩B∣=1, ∣S∩C∣=1. We have S∩A=({a,b,c}∪S′)∩A=({a,b,c}∩A)∪(S′∩A). Since a∈A, b∈/A (as b∈B and A∩B=∅), and c∈/A (as c∈C and A∩C=∅), we have {a,b,c}∩A={a}. So, S∩A={a}∪(S′∩A). For this to be equal to {a}, we must have S′∩A=∅. Similarly, for ∣S∩B∣=1, we must have S′∩B=∅. And for ∣S∩C∣=1, we must have S′∩C=∅.
Thus, S′ must be a subset of D∖{a,b,c} such that S′ contains no elements from A, no elements from B, and no elements from C. This means S′ must be a subset of D∖(A∪B∪C).
Let E=D∖(A∪B∪C). A∪B∪C={1,2,3}∪{4,5,6}∪{7,8,9}={1,2,3,4,5,6,7,8,9}. D={1,2,3,4,5,6,7,8,9,10}. E=D∖(A∪B∪C)={10}. The set E contains the elements in D that are not in A, B, or C. The size of E is ∣E∣=1.
The subset S is formed by choosing one element a∈A, one element b∈B, one element c∈C, and including these three elements along with any subset of E. So, S={a,b,c}∪SE, where a∈A,b∈B,c∈C and SE⊆E.
The number of ways to choose a is ∣A∣=3. The number of ways to choose b is ∣B∣=3. The number of ways to choose c is ∣C∣=3. The number of ways to choose a subset SE from E is 2∣E∣=21=2. The possible subsets of E={10} are ∅ and {10}.
The total number of such subsets S is the product of the number of choices for each part: Total number of subsets = (Number of choices for a) × (Number of choices for b) × (Number of choices for c) × (Number of choices for SE) Total number of subsets = ∣A∣×∣B∣×∣C∣×2∣D∖(A∪B∪C)∣ Total number of subsets = 3×3×3×21=27×2=54.
Each such choice gives a unique subset of D satisfying the conditions. For example, choosing a=1,b=4,c=7 and SE=∅ gives the subset {1,4,7}. Choosing a=1,b=4,c=7 and SE={10} gives the subset {1,4,7,10}. Choosing a=2,b=5,c=8 and SE=∅ gives the subset {2,5,8}. And so on.
The total number of subsets of D having exactly one element from each of sets A, B, and C is 54.