I'm not entirely sure of how I should prove this statement:
$$ \gcd(a,b) = ax+by \Rightarrow \gcd(x,y) = 1 $$
So I've tried
$$ \begin{align} &\gcd(x,y) = d \Rightarrow x =x'd, y=y'd\\ \Rightarrow &\gcd(a,b) = ax'd+by'd = d(ax'+by')\\ \Rightarrow & \gcd(a,b) = d(\gcd(a,b)) \\ \Rightarrow &1= d \end{align} $$
But I'm not sure if this is correct. Even so, is there perhaps a better way to solve this?