\(B=\dfrac{\sqrt{x}+2}{\left(\sqrt{x}-2\right)\left(\sqrt{x}+2\right)}+\dfrac{\sqrt{x}-2}{\left(\sqrt{x}-2\right)\left(\sqrt{x}+2\right)}-\dfrac{2\sqrt{x}-1}{\left(\sqrt{x}-2\right)\left(\sqrt{x}+2\right)}\)
\(=\dfrac{\sqrt{x}+2+\sqrt{x}-2-2\sqrt{x}+1}{\left(\sqrt{x}-2\right)\left(\sqrt{x}+2\right)}=\dfrac{1}{x-4}\)
\(B=-1\Leftrightarrow\dfrac{1}{x-4}=-1\Rightarrow4-x=1\Rightarrow x=3\)