Suppose you have bag of $p$ marbles with $a$ marbles of a color $A$, $b$ of color $B$, and so on to $e$ marbles of $E$ i.e. $p=a+b+c+d+e$. Consequentially for any singular type of marble e.g. $A$, $0\le a \le p$ so long as $p=a+b+c+d+e$.
While there are $\binom{p}{n}$ ways to pick $n$ marbles out of $p$ marbles, I am more interested in figuring out, if given $a$, $b$, $c$, $d$, and $e$ how many unique ways there are to do this. For example, suppose $n=2$, $p=10 = a =10, b=c=d=e=0$. There are $\binom{p}{n}$ ways for me to get two marbles, but no matter which two I choose I will have two marbles of type $A$, so there is really only one result.
I guess then my question is more so inverted. Given that I am looking to choose $n$ how many ways can I construct $n$ from $a, b, c, d$, and $e$.
My first thought was the multinomial coefficient
$$ \frac{n!}{a!b!c!d!e!} $$
but that clearly is incorrect. What am I forgetting? Looking at this question it seems that I have to do this for the variable number of ways this could occur:
$$ 5(\binom{n}{n} + \binom{n}{n-1}*4\binom{n}{n-n+1} + \binom{n}{n-2}*8\binom{n}{n-n+1}*4\binom{n}{n-n+2} + \dots) $$ but that only works assuming that there are $n$ of each type of marble....