I had this maths question:
Given that $$8\sqrt{p} = q\sqrt{80}$$ where $p$ is prime, find the value of $p$ and the value of $q$
I did this by simplifying the RHS to $4q\sqrt{5}$ and comparing clearly gives $p=5$ and $q=2$
However, I also thought why not do this by getting unitary surds on either side, eg $$8\sqrt{p} = q\sqrt{80} \Rightarrow \sqrt{64p} = \sqrt{80q^2}$$ This tells me that $64p=80q^2$ or equivalently $4p = 5q^2$.
How would I be able to get $p$ and $q$ from this method? How do I know that the solution is unique?
If so, is it fortuitous that we get a unique solution with these particular numbers or will it always be unique - I think I just need to see a proof to convince myself!