\(P=\dfrac{\sqrt{x}}{\sqrt{x}-1}+\dfrac{2}{\sqrt{x}+3}+\dfrac{2-6\sqrt{x}}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+3\right)}\)
\(=\dfrac{x+3\sqrt{x}+2\sqrt{x}-2+2-6\sqrt{x}}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+3\right)}\)
\(=\dfrac{x-\sqrt{x}}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+3\right)}=\dfrac{\sqrt{x}}{\sqrt{x}+3}\)