\(\left(\frac{x-2}{x+2\sqrt{x}}+\frac{1}{\sqrt{x}+2}\right).\frac{\sqrt{x}+1}{\sqrt{x}-1}\)
\(=\frac{x+\sqrt{x}-2}{\sqrt{x}\left(\sqrt{x}+2\right)}.\frac{\sqrt{x}+1}{\sqrt{x}-1}\)
\(=\frac{\left(\sqrt{x}-1\right)\left(\sqrt{x}+2\right)\left(\sqrt{x}+1\right)}{\sqrt{x}\left(\sqrt{x}+2\right)\left(\sqrt{x}-1\right)}\)
\(=\frac{\sqrt{x}+1}{\sqrt{x}}\)