a.\(A=\dfrac{x^2-4x+4}{x^3-2x^2-\left(4x-8\right)}=\dfrac{\left(x-2\right)^2}{x^2\left(x-2\right)-4\left(x-2\right)}=\dfrac{\left(x-2\right)^2}{\left(x^2-4\right)\left(x-2\right)}=\dfrac{x-2}{\left(x-2\right)\left(x+2\right)}=\dfrac{1}{x+2}\)
\(A=\dfrac{\left(x-2\right)^2}{x^2\left(x-2\right)-4\left(x-2\right)}\left(x\ne\pm2\right)\\ A=\dfrac{\left(x-2\right)^2}{\left(x-2\right)^2\left(x+2\right)}=\dfrac{1}{x+2}\\ B=\dfrac{x+2-x+\sqrt{x}-1}{\left(\sqrt{x}+1\right)\left(x-\sqrt{x}+1\right)}\cdot\dfrac{4\sqrt{x}}{3}\left(x>0\right)\\ B=\dfrac{4\sqrt{x}\left(\sqrt{x}+1\right)}{3\left(\sqrt{x}+1\right)\left(x-\sqrt{x}+1\right)}=\dfrac{4\sqrt{x}}{3\left(x-\sqrt{x}+1\right)}\)