\(B=\left(x-2y\right)^2+y^2+2x+6y+2046=\left[\left(x-2y\right)^2+2\left(x-2y\right)+1\right]+\left(y^2+10y+25\right)+2020=\left(x-2y+1\right)^2+\left(y+5\right)^2+2020\ge2020\)
\(minB=2020\Leftrightarrow\)\(\left\{{}\begin{matrix}x=-11\\y=-5\end{matrix}\right.\)