Find the integer solutions to $$x_1 + \dots x_{10} = 25$$ such that $$1 \leq x_i \leq 6$$
I made transformation $$y_i = 7 - x_i$$ and got the new problem as $$y_1 + \dots + y_{10} = 45$$ but in this case I can have $$y_i = 8$$ which would mean that $$x_i = -1$$. How do I solve this then?
Edit: any other solution is appreciated.