I was trying to count the number of natural number solutions to the equation: $x_1 + x_2 + ... + x_{11} = 20$, such that $0 \leq x_i \leq 9$, for all $i \in \{1, ..., 11\}$.
I know how to apply the first boundary condition - if I only required $0 \leq x_i$, then the number of solutions is $$\frac{30!}{20!\cdot10!}$$ because I can interpret the problem as trying to arrange $20$ balls in between $10$ bars, including the possibility of having $0$ balls in between two given bars. I just don't know how to apply the latter condition, i.e. $x_i \leq 9$.
Could anyone help me? Thanks in advance!