\(B=\left(\dfrac{\sqrt{x}}{\sqrt{x}-1}-\dfrac{1}{x-\sqrt{x}}\right):\dfrac{\sqrt{x}+1}{\sqrt{x}+2}\)
\(=\dfrac{\sqrt{x}\cdot\sqrt{x}-1}{\sqrt{x}\left(\sqrt{x}-1\right)}\cdot\dfrac{\sqrt{x}+2}{\sqrt{x}+1}\)
\(=\dfrac{\left(x-1\right)\left(\sqrt{x}+2\right)}{\sqrt{x}\left(x-1\right)}=\dfrac{\sqrt{x}+2}{\sqrt{x}}\)