\(\Leftrightarrow3\sqrt{x+2}-x-6+5\sqrt{x+18}-21=0\)
=>\(3\sqrt{x+2}-9+5\sqrt{x+18}-x-18=0\)
=>\(3\left(\sqrt{x+2}-3\right)+\sqrt{x+18}\left(5-\sqrt{x+18}\right)=0\)
=>\(3\cdot\dfrac{x+2-9}{\sqrt{x+2}+3}+\sqrt{x+18}\cdot\dfrac{25-x-18}{5+\sqrt{x+18}}=0\)
=>\(\left(x-7\right)\cdot\left(\dfrac{3}{\sqrt{x+2}+3}-\dfrac{\sqrt{x+18}}{5+\sqrt{x+18}}\right)=0\)
=>x-7=0
=>x=7