\(P=\dfrac{2\sqrt{x}-9-x+9+2x-4\sqrt{x}+\sqrt{x}-2}{\left(\sqrt{x}-2\right)\left(\sqrt{x}-3\right)}\)
\(=\dfrac{x-\sqrt{x}-2}{\left(\sqrt{x}-2\right)\left(\sqrt{x}-3\right)}=\dfrac{\sqrt{x}+1}{\sqrt{x}-3}\)
Để P là số nguyen thì \(\sqrt{x}-3+4⋮\sqrt{x}-3\)
\(\Leftrightarrow\sqrt{x}-3\in\left\{-2;-1;1;2;4\right\}\)
hay \(x\in\left\{1;16;25;49\right\}\)