If $a | b$, prove that $\gcd(a,b)$=$|a|$.
I tried to work backwards. If $\gcd(a,b)=|a|$, then I need to find integers $x$ and $y$ such that $|a|=xa+yb$. So if I set $x=1$ and $y=0$ (if $|a|=a$) or if I set $x=-1$ and $y=0$ (if $|a|=-a$), is this good enough?
If $a \mid b$, then $|a| \mid b$. Moreover, we have $|a| \mid a$. Thus $|a|$ divides both $a$ and $b$. If $q > |a|$, then $q \nmid a$ by definition, so $|a|$ is the greatest common divisor of $a$ and $b$.