\(A=\dfrac{x+\sqrt{x}-x-2}{\sqrt{x}+1}:\dfrac{x-\sqrt{x}+\sqrt{x}-4}{\left(\sqrt{x}+1\right)\left(\sqrt{x}-1\right)}\\ A=\dfrac{\sqrt{x}-2}{\sqrt{x}+1}\cdot\dfrac{\left(\sqrt{x}+1\right)\left(\sqrt{x}-1\right)}{\left(\sqrt{x}-2\right)\left(\sqrt{x}+2\right)}=\dfrac{\sqrt{x}-1}{\sqrt{x}+2}\)
\(x=\dfrac{9-4\sqrt{5}-9-4\sqrt{5}}{\left(2+\sqrt{5}\right)\left(2-\sqrt{5}\right)}:2\sqrt{5}=\dfrac{-8\sqrt{5}}{-2\sqrt{5}}=4\\ \Leftrightarrow\sqrt{x}=2\\ \Leftrightarrow A=\dfrac{2-1}{2+2}=\dfrac{1}{4}\)