Assuming we have a set of Democrats that has $8$ people, Republicans that have $10$ people and independent that have $7 $ people. How many combinations are there to pick $14 $ people?
So basically the question is to find the solution to $$ X_{i}+X_{d}+X_{r}=14 $$ $$ \begin{cases} X_{i}\le7\\ X_{d}\le8\\ X_{r}\le10 \end{cases} $$
I think it needs to be solved with inclusion-exclusion but I'm unsure how.
All situations - unwanted cases such that $X_i \geq 8$ or $X_d \geq 9$ or $X_r \geq 11$
Unwanted cases : $|X_i \geq 8|+|X_d\geq9|+|X_r\geq11| -|X_i\geq8 \cap X_r\geq11|-|X_i\geq8 \cap X_d\geq9|-|X_d\geq9 \cap X_r\geq11|+|X_i\geq8 \cap X_r\geq11 \cap X_d\geq9|$ .Then , $$\binom{6+3-1}{2}+\binom{5+3-1}{2}+\binom{3+3-1}{2}-0-0-0+0 =59$$
All cases : $$\binom{14+3-1}{2}=120$$
So , $$120-59 =61$$