\(B=\dfrac{\sqrt{x}+5}{\sqrt{x}+1}+\dfrac{\sqrt{x}-7}{1-x}\left(dkxd:x\ne1,x\ge0\right)\)
\(=\dfrac{\sqrt{x}+5}{\sqrt{x}+1}-\dfrac{\sqrt{x}-7}{x-1}\)
\(=\dfrac{\sqrt{x}+5}{\sqrt{x}+1}-\dfrac{\sqrt{x}-7}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)}\)
\(=\dfrac{\left(\sqrt{x}+5\right)\left(\sqrt{x}-1\right)-\left(\sqrt{x}-7\right)}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)}\)
\(=\dfrac{x-\sqrt{x}+5\sqrt{x}-5-\sqrt{x}+7}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)}\)
\(=\dfrac{x+3\sqrt{x}+2}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)}\)
\(=\dfrac{x+\sqrt{x}+2\sqrt{x}+2}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)}\)
\(=\dfrac{\sqrt{x}\left(\sqrt{x}+1\right)+2\left(\sqrt{x}+1\right)}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)}\)
\(=\dfrac{\left(\sqrt{x}+2\right)\left(\sqrt{x}+1\right)}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)}\)
\(=\dfrac{\sqrt{x}+2}{\sqrt{x}-1}\)