\(A=\dfrac{\sqrt{x}\left(x\sqrt{x}-1\right)}{x+\sqrt{x}+1}-\dfrac{\sqrt{x}\left(2\sqrt{x}+1\right)}{\sqrt{x}}+\dfrac{2\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)}{\sqrt{x}-1}\\ A=\dfrac{\sqrt{x}\left(\sqrt{x}-1\right)\left(x+\sqrt{x}+1\right)}{x+\sqrt{x}+1}-\left(2\sqrt{x}+1\right)+2\left(\sqrt{x}+1\right)\\ A=x-\sqrt{x}-2\sqrt{x}-1+2\sqrt{x}+2=x-\sqrt{x}+1\)
\(B=\dfrac{7a-7b+8a+8b-16b}{\left(a+b\right)\left(a-b\right)}=\dfrac{15a-15b}{\left(a-b\right)\left(a+b\right)}\\ B=\dfrac{15\left(a-b\right)}{\left(a-b\right)\left(a+b\right)}=\dfrac{15}{a+b}\)