I don't really understand the proof for this.
It says "consider a set $A=\{ax+by\mid x,y\in \mathbb{Z}\}$. Then let the smallest element of of $A$ be $d$.Then $d=ak+bn, k,n\in Z$. Show $d|a$ and $d|b$ so that $d$ is the common divisor. Then show that if $m|a$ and $m|b$ then $m \le d$."
I don't really know how if $d=ak+bn, k,n\in Z$ then $d$ divides $a$ and $b$ also I know how $m$ dividing $a$ and $b$ makes it less than $d$. I can understand it being equal but not less than.