All variables are integers:
conclude that if, in addition, $ad − bc = \pm 1$, then $\gcd(x, y) = \gcd(ax + by, cx + dy)$. The fact that $\gcd(x, y) = \gcd(x + ky, y)$ used for the Euclidean Algorithm is a special case of this exercise.
I was also told to consider the idea of a matrix $\begin{pmatrix} a & b\\ c & d\end{pmatrix}$ as well as its inverse.
I understand that $ad-bc$ is the determinant and that the determinant of the inverse is still equal to $ad-bc$ as well but I'm not able to put the pieces together about how this helps me to show the two gcds are equal.