ĐKXĐ: \(x\ge2\)
\(2A=-2x+2\sqrt{x-2}+4\sqrt{x+1}+20\)
\(2A=-\left(x-2-2\sqrt{x-2}+1\right)-\left(x+1-4\sqrt{x+1}+4\right)+24\)
\(2A=-\left(\sqrt{x-2}-1\right)^2-\left(\sqrt{x+1}-2\right)^2+24\le24\)
\(\Rightarrow A\le12\)
\(A_{max}=12\) khi \(x=3\)