ta có : \(A=\dfrac{x+y-2\sqrt{xy}}{\sqrt{x}-\sqrt{y}}-\dfrac{x+\sqrt{xy}}{\sqrt{x}+\sqrt{y}}=\dfrac{\left(\sqrt{x}-\sqrt{y}\right)^2}{\sqrt{x}-\sqrt{y}}-\dfrac{\sqrt{x}\left(\sqrt{x}+\sqrt{y}\right)}{\sqrt{x}+\sqrt{y}}\)
\(=\sqrt{x}-\sqrt{y}-\sqrt{x}=-\sqrt{y}\)
ta có \(B=\dfrac{\sqrt{2}+\sqrt{3}+\sqrt{6}+\sqrt{8}+4}{\sqrt{2}+\sqrt{3}+\sqrt{4}}=\dfrac{\sqrt{2}+\sqrt{3}+2+2+\sqrt{6}+\sqrt{8}}{\sqrt{2}+\sqrt{3}+\sqrt{4}}\)
\(=\dfrac{\sqrt{2}+\sqrt{3}+\sqrt{4}+\sqrt{2}\left(\sqrt{2}+\sqrt{3}+\sqrt{4}\right)}{\sqrt{2}+\sqrt{3}+\sqrt{4}}\)
\(=\dfrac{\left(1+\sqrt{2}\right)\left(\sqrt{2}+\sqrt{3}+\sqrt{4}\right)}{\sqrt{2}+\sqrt{3}+\sqrt{4}}=1+\sqrt{2}\)