I can reduce it using the fact that square root of a number is rational if it is a square number. Now it would be something like : If $ab=k^2$ for some $k$ in $N$ then show that $\frac{a}{b}=m^2$ for some $m$ in $N$
Where $a$,$b$ belongs to $N$
$N$ is the set of natural numbers.
I have tried prime factorisation also But do not know how to proceed.
CLAIM
If $a$,$b$ belongs to $N$ and if $\sqrt ab$ is integer then prove that $\sqrt \frac{max(a,b)}{min(a,b)}$ is also an integer. Where $N$ is the set of natural numbers.
Hint $ $ Employ $\,b\sqrt{a/b} = \sqrt{ab}.\,$ This is a special case of a general method. Let's view it that way.
Observe that $\, \overbrace{bx^2 = a}^{\large\ \ x\ =\ \sqrt{a/b}}\!\!\!\!\overset{\large \times\ b}\iff\! \overbrace{(bx)^2 = ab}^{\large\,\ bx\ \ =\ \ \sqrt{ab}}\ $ for $\,b\neq 0$
We scaled the LHS by $b$ to get $\,X^2 = ab,\ X := bx\,$ which is now monic (lead coeff $=1).\,$ This is a special case of the monicization method used in the AC method for factoring non-monic quadratics.
The same method also works for higher-degree polynomials (as I explain in the linked post), which leads to higher-degree generalizations of the above identity for square-roots.
Generally the method shows that any algebraic number can be written as $\,\alpha = \beta/n\,$ where $\,n\in\Bbb Z\,$ and $\,\beta\,$ is an algebraic integer (i.e. a root of a monic $f(x)\in\Bbb Z[x]),$ e.g. above $\,\sqrt{a/b} = \sqrt{ab}/b,\,$ where $\,\sqrt{ab}\,$ is a root of the monic $\,x^2\!-ab\,$ so is an algebraic integer.
In higher-degree cases such equations are generally less obvious, so it is worth being aware of the general viewpoint (even though it is a bit overkill for this particular case).