\(A=\dfrac{\sqrt{x}+2+x-\sqrt{x}+1}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+2\right)}:\dfrac{x-1-x+\sqrt{x}+4}{\left(\sqrt{x}+2\right)\left(\sqrt{x}-1\right)}\)
\(=\dfrac{x+3}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+2\right)}\cdot\dfrac{\left(\sqrt{x}+2\right)\left(\sqrt{x}-1\right)}{\sqrt{x}+3}\)
\(=\dfrac{x+3}{\sqrt{x}+3}\)