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