Lời giải:
$x^2+2xy+6x+6y+2y^2+8=0$
$\Leftrightarrow (x^2+2xy+y^2)+6x+6y+y^2+8=0$
$\Leftrightarrow (x+y)^2+6(x+y)+y^2+8=0$
$\Leftrightarrow (x+y+3)^2+y^2-1=0$
$\Leftrightarrow (x+y+3)^2=1-y^2\leq 1$
$\Rightarrow -1\leq x+y+3\leq 1$
$\Rightarrow -4\leq x+y\leq -2$
$\Rightarrow 2020\leq x+y+2024\leq 2022$
Vậy $P_{\min}=2020; P_{\max}=2022$