$f(x,y,z)=x^2+y^2+z^2$ constraint to $x^2+y^2+z^2+xy=12$
So I have made 4 equations using Lagrange Multipliers,
$2x=\lambda(2x+y)$ , $2y=\lambda(2y+x)$ , $2z=\lambda(2z)$ , and $x^2+y^2+z^2+xy=12$
The third equation is $2z=2z\lambda$ which ends up with $z=0$ or $\lambda=1$
With $z=0$ put in the constraint equation, I get $x= \pm 2$ and a minimum of $f(\pm 2,\pm 2,0)=8$
and with $\lambda=1$ put in the $F_x=\lambda G_x$ and $F_y=\lambda G_y$, I get $x,y=0$ and from the constraint equation I get $z=\pm\sqrt{12}$
which gives the max at $f(0,0,\pm\sqrt{12})=12$
which is incorrect and the answer was $24$ and I do not know of what mistakes I did.
If $z=0$, then your system becomes$$\left\{\begin{array}{l}2x=\lambda(2x+y)\\2y=\lambda(2y+x)\\x^2+y^2+xy=12.\end{array}\right.\label{a}\tag1$$The system which consists of the first two equations is equivalent to$$\left\{\begin{array}{l}(2-2\lambda)x-\lambda y=0\\-\lambda x+(2-2\lambda)y=0.\end{array}\right.\label{b}\tag2$$If the determinant of the matrix of the coefficients of the system \eqref{b} turns out to be different from $0$, then the system has one and only one solution, which is $x=y=0$, but there is no such solution of the system \eqref{a}.
The determinant mentioned above is $3\lambda^2-8\lambda+4$ which is equal to $0$ if and only if $\lambda=2$ or $\lambda=\frac23$. If $\lambda=2$, then the system \eqref{b} becomes equivalent to $x+y=0$, and the solutions of the system$$\left\{\begin{array}{l}x+y=0\\x^2+y^2+xy=12\end{array}\right.$$are $\pm\left(2\sqrt3,-2\sqrt3\right)$, which you have missed. And $f\left(\pm2\sqrt3,\mp2\sqrt3\right)=24$.
And if $\lambda=\frac23$, then the system \eqref{b} is equivalent to $x-y=0$, and the solutions of the system$$\left\{\begin{array}{l}x-y=0\\x^2+y^2+xy=12\end{array}\right.$$are $\pm\left(2,2\right)$, which you have found.