A=\(\dfrac{x-3\sqrt{x}-x-9}{\left(\sqrt{x}+3\right)\left(\sqrt{x}-3\right)}\div\dfrac{3\sqrt{x}+1-\sqrt{x}+3}{\sqrt{x}\left(\sqrt{x}-3\right)}\)
=\(\dfrac{-3\left(\sqrt{x}+3\right)}{\left(\sqrt{x+3}\right)\left(\sqrt{x}-3\right)}\times\dfrac{\sqrt{x}\left(\sqrt{x}-3\right)}{2\left(\sqrt{x}+2\right)}\)
=\(\dfrac{-3\sqrt{x}}{2\left(\sqrt{x}+2\right)}\)