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