Given is $$ x_1+x_2+x_3=20$$ with $$ x_1\in\{4,5,6\}\cup\{10,11,12\} \\ 0\leq x_2 \leq 8 \\ 5 \leq x_3 \leq 10.$$
I know this has something to do with inclusion-exclusion. I was thinking the following. Let \begin{align}y_1&=x_1-4 \\ y_2 &= x_2 \\ y_3 &= x_3-5\end{align}
I know this is right for $x_2$ and $x_3$, however I'm not sure for $y_1$. If I know what this should be, I know how to use the inclusion exclusion function. Can someone help me with the $y_1$? Thanks!
One (and maybe cumbersome, if done by hand) approach doing it, would be to compute and check the coefficient of $x^{20}$ of the product:
$$(x^4 + x^5 + x^6+ x^{10} + x^{11}+ x^{12}) *(1+x+x^2+x^3+x^4+x^5+x^6+x^7+x^8 ) * ( x^5+x^6+x^7+x^8+x^9 +x^{10}) $$