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