\(z=\frac{P-x-y}{2}\)
\(\Rightarrow x^2+y^2+\frac{\left(P-x-y\right)^2}{4}=3\)
\(\Leftrightarrow5y^2+\left(2x-2P\right)y+5x^2-2Px+P^2-12=0\)
\(\Rightarrow\Delta_y=\left(x-P\right)^2-5.\left(5x^2-2Px+P^2-12\right)\ge0\)
\(\Leftrightarrow36x^2-12Px+P^2+5P^2-90\le0\)
\(\Leftrightarrow5P^2-90\le-\left(6x-P\right)^2\le0\)
\(\Leftrightarrow-3\sqrt{2}\le P\le3\sqrt{2}\)