Let $$, $$ and $$ be positive integers such that $ = ^2$. If $gcd(, ) = 1$, prove that there exist positive integers $$ and $$ such that $ = ^2$ and $ = ^2$.
I'm a bit lost. I know that $1 = ac + bd$, and I can simplify $ab = n^2$ to $a = \frac{n^2}{b}$ and $b = \frac{n^2}{a}$, but I don't know where to go from there. I try substituting $a$ and $b$ but cannot figure out how to get that $a = c^2$ and $b = d^2$.