Find all four digit numbers such that sum of digits is $10$.
If $x_1x_2x_3x_4$ is our number then $x_1+x_2+x_3+x_4=10$. Number of solutions using stars and bars is $C_{13}^{10}$ which is equal to $286$. But we also need to subtract cases when we have $10$ as a digit which we have $4$ cases so answer should be $282.$ But answer is $219$ can you help to understand where is problem?