User226263 explanation using generating functions makes it straightforward. If you don't know much about generating functions then that explanation just nails it. In the product:
$$P(x) = \left(1+x +\cdots+x^8\right) \left(1+x+\cdots +x^7\right) \left(1+x+\cdots +x^{11}\right)$$
the coefficient of $x^{12}$ is the number of ways you can pick a term $x^a$ from the first bracket, $x^b$ from the second bracket and $x^c$ from the third bracket such that $a+b+c = 12$. This then corresponds to precisely to picking $a$ yellow balls, $b$ red balls and $c$ white balls such that you're picking 12 balls in total.
The general function method then leads to a simplification because you are now free to use algebra, calculus or whatever other methods to extract the desired coefficients, using formal methods one is then less prone to make errors. In this case, we can write:
$$P(x) = \frac{\left(1-x^9\right)\left(1-x^8\right)\left(1-x^{12}\right)}{\left(1-x\right)^3}$$
We can then use that:
$$\frac{1}{\left(1-x\right)^3} = \sum_{n=0}^{\infty}\binom{n+2}{2}x^n$$
Therefore the coefficient of $x^{12}$ is given by:
$$\binom{14}{2} - \binom{5}{2} - \binom{6}{2} -1 = 65$$