I want to show that this is true. Here's my approach.
Let $(a,b)=d$ be the greatest common divisor of $a$ and $b$. Since $a|b,$ there exists an integer $k$ such that $b=ak$ Thus $(a,ak)=d$.
Since $(a,ak)=d$, there exist integers $s,t$ such that $$as+akt=d$$ $$a(1s+kt)=d$$ $$a(1,k)=d$$ $$a\cdot 1=d$$ $$a=d$$
Is this a correct proof?