a: \(=\left(1-\dfrac{\sqrt{x}-3}{\sqrt{x}+3}\right):\left(\dfrac{-\left(\sqrt{x}-3\right)}{\sqrt{x}-2}+\dfrac{\sqrt{x}-2}{\sqrt{x}+3}+\dfrac{x-9}{\left(\sqrt{x}+3\right)\left(\sqrt{x}-2\right)}\right)\)
\(=\dfrac{\sqrt{x}+3-\sqrt{x}+3}{\sqrt{x}+3}:\dfrac{-x+9+x-4\sqrt{x}+4+x-9}{\left(\sqrt{x}+3\right)\left(\sqrt{x}-2\right)}\)
\(=\dfrac{6}{\sqrt{x}+3}\cdot\dfrac{\left(\sqrt{x}+3\right)\left(\sqrt{x}-2\right)}{x-4\sqrt{x}+4}=\dfrac{6}{\sqrt{x}-2}\)
b: Để A nguyên thì \(\sqrt{x}-2\in\left\{1;-1;2;-2;3;-3;6;-6\right\}\)
=>\(x\in\left\{1;16;0;25;64\right\}\)