\(P=\dfrac{3-\sqrt{x}}{\sqrt{x}-2}+\dfrac{\sqrt{x}-2}{\sqrt{x}}-\dfrac{\sqrt{x}+1}{\sqrt{x}-2}+\dfrac{2\sqrt{x}+7}{4-x}\left(x>0;x\ne4\right)\\ P=\dfrac{\left(3-\sqrt{x}\right)\left(\sqrt{x}+2\right)-\left(\sqrt{x}+1\right)\left(\sqrt{x}+2\right)+2\sqrt{x}+7}{\left(\sqrt{x}-2\right)\left(\sqrt{x}+2\right)}+\dfrac{\sqrt{x}-2}{\sqrt{x}}\\ P=\dfrac{\sqrt{x}+6-x-x-3\sqrt{x}-2+2\sqrt{x}+7}{\left(\sqrt{x}+2\right)\left(\sqrt{x}-2\right)}+\dfrac{\sqrt{x}+2}{\sqrt{x}}\\ P=\dfrac{-2x+11}{\left(\sqrt{x}-2\right)\left(\sqrt{x}+2\right)}+\dfrac{\sqrt{x}+2}{\sqrt{x}}\\ P=\dfrac{-2x\sqrt{x}+11\sqrt{x}+\left(\sqrt{x}+2\right)\left(x-4\right)}{\sqrt{x}\left(x-4\right)}\)
\(P=\dfrac{-2x\sqrt{x}+11\sqrt{x}+x\sqrt{x}-4\sqrt{x}+2x-8}{\sqrt{x}\left(x-4\right)}\\ P=\dfrac{-x\sqrt{x}+8\sqrt{x}+2x-8}{\sqrt{x}\left(x-4\right)}\)