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