If $a$ is an integer. Find all possible values of $(7a+12,3a+5)$.
I started with:
Let $d$=$gcd(7a+12, 3a+5)$.
Then $d|7a+12$ and $d|3a+5$.
I am not sure what to do after this.
I have seen online someone saying that
$(3)(7a+12)+(-7)(3a+5)=1$
and that $d=1$ but I don't understand how.
But you found the very solution: when a linear combination $ax+by=1$, we have that $\operatorname{gcd}(a,b)=1$, as $\operatorname{gcd}(a,b)\mid (ax+by)$, hence $\operatorname{gcd}(a,b)\mid1$.