Explain why the set $S = $ {$s \in \mathbb{N} | \exists m,n \in \mathbb{Z}, s = ma+ nb $} has a smallest element, call it d, so we know there exists $x,y \in \mathbb{Z}$ such that $d = ax + by$, and show that for any $s \in S$, we have $d|s$.
My Work:
I am assuming that since $S \in \mathbb{N}$ we know that it has a smallest element because of the well ordering principle, therefore we know there exists $d$ such that $d = ax + by$. For the second part, I am going to assume a contradiction such that $d\not| s$. If we apply the division algorithm we get $q,r \in \mathbb{Z}$ such that $s = qd + r$ with $ 0 \leq r < d$. And then somehow show that $r \in S$
Hint $\,\ r = s\!-\!qd = am\!+\!bn-q(ax\!+\!by) = a(m\!-\!qx)+b(n\!-\!qy)\in S.$
Alternatively, $S$ is closed under subtraction, so also under mod = iterated subtraction, i.e. $\ s\ {\rm mod}\ d\, =\, s-qd = ((s-d)-d)- \cdots -d.\ $ Again, see my comment on your prior question for the conceptual background.