Question
Question: Tanuj has 9 relatives, 5 of them are Ladies and 4 Gentlemen; his wife has also 9 relatives, 4 of the...
Tanuj has 9 relatives, 5 of them are Ladies and 4 Gentlemen; his wife has also 9 relatives, 4 of them are Ladies and 5 Gentlemen and there are no common relatives for Tanuj and his wife. If the number of ways they can invite a dinner party of 4 Ladies and 4 Gentlemen so that there are 4 of the Tanuj relatives and 4 of his wife's relatives is m then sum of digits of m equals to

19
18
20
17
19
Solution
Let TL=5 and TG=4 be the number of ladies and gentlemen among Tanuj's relatives, respectively. Let WL=4 and WG=5 be the number of ladies and gentlemen among his wife's relatives, respectively.
The party needs to have 4 ladies and 4 gentlemen. Also, 4 guests must be from Tanuj's relatives and 4 from his wife's relatives.
Let tl and tg be the number of ladies and gentlemen invited from Tanuj's relatives. So, tl+tg=4.
Let wl and wg be the number of ladies and gentlemen invited from his wife's relatives. So, wl+wg=4.
The total number of ladies in the party is 4: tl+wl=4. The total number of gentlemen in the party is 4: tg+wg=4.
From these equations, we get wl=4−tl and wg=4−tg. Also, substituting tl=4−tg into tl+wl=4, we get (4−tg)+wl=4, which implies wl=tg. Similarly, substituting tg=4−tl into tg+wg=4, we get (4−tl)+wg=4, which implies wg=tl.
We need to find the number of ways to choose tl ladies from Tanuj's 5 ladies and tg gentlemen from Tanuj's 4 gentlemen, such that tl+tg=4. The number of ways for Tanuj's selection is 5Ctl×4Ctg. Simultaneously, we need to choose wl=tg ladies from his wife's 4 ladies and wg=tl gentlemen from his wife's 5 gentlemen. The number of ways for his wife's selection is 4Cwl×5Cwg=4Ctg×5Ctl.
The total number of ways for a specific pair (tl,tg) is (5Ctl×4Ctg)×(4Ctg×5Ctl).
We consider all valid combinations of (tl,tg) such that tl+tg=4, and the selections are possible: 0≤tl≤5, 0≤tg≤4, 0≤wl≤4, 0≤wg≤5. These constraints imply 0≤tl≤4.
Case 1: tl=0,tg=4. Ways = (5C0×4C4)×(4C4×5C0)=(1×1)×(1×1)=1.
Case 2: tl=1,tg=3. Ways = (5C1×4C3)×(4C3×5C1)=(5×4)×(4×5)=20×20=400.
Case 3: tl=2,tg=2. Ways = (5C2×4C2)×(4C2×5C2)=(10×6)×(6×10)=60×60=3600.
Case 4: tl=3,tg=1. Ways = (5C3×4C1)×(4C1×5C3)=(10×4)×(4×10)=40×40=1600.
Case 5: tl=4,tg=0. Ways = (5C4×4C0)×(4C0×5C4)=(5×1)×(1×5)=5×5=25.
The total number of ways, m, is the sum of ways from all cases: m=1+400+3600+1600+25=5626.
The sum of the digits of m is 5+6+2+6=19.
