a) Ta có: \(P=\left(\dfrac{\sqrt{x}+3}{\sqrt{x}-2}+\dfrac{\sqrt{x}+2}{3-\sqrt{x}}+\dfrac{\sqrt{x}+2}{x-5\sqrt{x}+6}\right):\left(1-\dfrac{\sqrt{x}}{\sqrt{x}+1}\right)\)
\(=\left(\dfrac{\left(\sqrt{x}+3\right)\left(\sqrt{x}-3\right)}{\left(\sqrt{x}-2\right)\left(\sqrt{x}-3\right)}-\dfrac{\left(\sqrt{x}+2\right)\left(\sqrt{x}-2\right)}{\left(\sqrt{x}-3\right)\left(\sqrt{x}-2\right)}+\dfrac{\sqrt{x}+2}{\left(\sqrt{x}-3\right)\left(\sqrt{x}-2\right)}\right):\dfrac{\sqrt{x}+1-\sqrt{x}}{\sqrt{x}+1}\)
\(=\dfrac{x-9-x+4+\sqrt{x}+2}{\left(\sqrt{x}-2\right)\left(\sqrt{x}-3\right)}:\dfrac{1}{\sqrt{x}+1}\)
\(=\dfrac{\sqrt{x}-1}{\left(\sqrt{x}-2\right)\left(\sqrt{x}-3\right)}\cdot\dfrac{\sqrt{x}+1}{1}\)
\(=\dfrac{x-1}{x-5\sqrt{x}+6}\)