a: \(A=\dfrac{x-4-5-\sqrt{x}-3}{\left(\sqrt{x}+3\right)\left(\sqrt{x}-2\right)}=\dfrac{x-\sqrt{x}-12}{\left(\sqrt{x}+3\right)\left(\sqrt{x}-2\right)}=\dfrac{\sqrt{x}-4}{\sqrt{x}-2}\)
b: Khi \(x=\left(2+\sqrt{2}\right)^2\) thì \(A=\dfrac{2+\sqrt{2}-4}{2+\sqrt{2}-2}=\dfrac{\sqrt{2}-2}{\sqrt{2}}=1-\sqrt{2}\)