\(A=-x^2+2xy-4y^2+2x+10y-8\)
\(=-x^2+2xy-y^2-3y^2+2x-2y+12y-12+4\)
\(=-\left(x^2-2xy+y^2\right)+\left(2x-2y\right)-1-\left(3y^2-12y+12\right)+5\)
\(=-\left(x-y\right)^2+2\left(x-y\right)-1-3\left(y-2\right)^2+5\)
\(=-\left[\left(x-y\right)^2-2\left(x-y\right)+1\right]\)\(-3\left(y-2\right)^2+5\)
\(=-\left(x-y-1\right)^2-3\left(y-2\right)^2+5\)
\(A_{max}=5\Leftrightarrow\hept{\begin{cases}\left(x-y-1\right)^2=0\\3\left(y-2\right)^2=0\end{cases}\Rightarrow\hept{\begin{cases}x-y-1=0\\y-2=0\end{cases}}}\)
\(\Rightarrow\hept{\begin{cases}x-y-1=0\\y=2\end{cases}}\)\(\Rightarrow x-2-1=0\Leftrightarrow x=3\)
\(KL:A_{max}=5\Leftrightarrow x=3;y=2\)