Question: Six dice are thrown independently. What is the probability of getting sum 10?
Attempt: There are total $6^6$ many possible cases. A number 6 can't appears in the sum so that total become 10.
1+1+1+1+1+5 there 6 way to happen this 2+2+2+2+2+2
Is there any better approach to solve this problem?
We have that $$ \left\{ \matrix{ 1 \le x_{\,k} \le 6 \hfill \cr x_{\,1} + x_{\,2} + \cdots + x_{\,6} = 10 \hfill \cr} \right.\quad \Rightarrow \quad \left\{ \matrix{ 0 \le y_{\,k} \left( { \le 5} \right) \hfill \cr y_{\,1} + y_{\,2} + \cdots + y_{\,6} = 4 \hfill \cr} \right. $$ and we can omit the upper bound on the admissible range for the $y$'s , since it is greater than the sum.
Thus the number of solutions is equal to the number of weak compositions of $4$ into $6$ parts which is $$\binom{4+6-1}{6-1} = \binom{9}{5}$$
For a more general approach you may refer to this related post.