Give a formula for the number of integer solution of the system with the solutions $\geq 0 $ $$x_1+x_2+\dots +x_r=n$$ $$y_1+y_2+\dots + y_r=n$$ With the condition that: $x_1+y_1\geq 1,\dots ,x_r+y_r\geq 1$
So I tried adding both equations so I got: $$x_1+y_1+\dots +x_r+y_r=2n$$
And made a change of variable called $z_i=x_i+y_i-1$ and the number of solutions of the new system will be the same that the original one so we have: $$z_1+\dots +z_r = 2n-r$$ and the number of solutions of this equation is: $\binom{2n-1}{r-1}$.
Is this correct?