I am not sure how to prove this theorem.
It states: Let $a,b,c$ be integers with $a$ and $b$ both no equal to $0$. If $x=x_0$ and $y=y_0$ is an integer solution to the equation $ax+by=c$, that is, $ax_0+by_0=c$, then for every integer $k$, the numbers $$x=x_0+\frac{kb}{(a,b)}\,\,\,\,\&\,\,\, y=y_0-\frac{ka}{(a,b)}$$ are integers that also satisfy the linear Diophantine equation $ax+by=c$. Moreover, every solution to the linear Diophantine equation $ax+by$ is of this form.
I understand how all solutions for a particular equation can be found using this equation, but I do not know how I can go about proving this theorem.
Example: Find all solutions to the equation $24x+9y=33$. The obvious solution to the equation is $x_0=1$ and $y_0=1$. Then, $x=1+\frac{9k}{3}$ and $y=1-\frac{24k}{3}$, so we have, $x=1+3k$ and $y=1-8k$ hence for all integer values of $k$, we have corresponding $x$ and $y$ values which satisfy the equation.