If $p, q, r, s$ are integers such that $ps - qr = \pm 1$, and $a, b, a', b'$ are integers such that
$$ a' = pa + qb $$
$$ b' = ra + sb $$
Prove that $\text{gcd}(a', b') = \text{gcd}(a, b)$.
I understand that posting questions without showing your work is a bad thing, however, I don't know how to even start this proof, as I don't see the connection between the given conditions and what I have to prove. Any help is appreciated. Thanks.