Ta có: \(B=\left(\dfrac{2}{\sqrt{x}+2}-\dfrac{\sqrt{x}-5}{x-4}\right):\dfrac{\sqrt{x}+1}{\sqrt{x}-2}\)
\(=\dfrac{2\sqrt{x}-4-\sqrt{x}+5}{\left(\sqrt{x}+2\right)\left(\sqrt{x}-2\right)}\cdot\dfrac{\sqrt{x}-2}{\sqrt{x}+1}\)
\(=\dfrac{1}{\sqrt{x}+2}\)
\(B=\left(\dfrac{2}{\sqrt{x}+2}-\dfrac{\sqrt{x}-5}{x-4}\right):\dfrac{\sqrt{x}+1}{\sqrt{x}-2}\left(x\ge0;x\ne4\right)\\ B=\dfrac{2\sqrt{x}-4-\sqrt{x}+5}{\left(\sqrt{x}-2\right)\left(\sqrt{x}+2\right)}\cdot\dfrac{\sqrt{x}-2}{\sqrt{x}+1}\\ B=\dfrac{\sqrt{x}+1}{\sqrt{x}+2}\cdot\dfrac{1}{\sqrt{x}+1}=\dfrac{1}{\sqrt{x}+2}\)