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.