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