You didn't precised what are the nature of the coefficients of P, so we can build a polynomial $P(x) = x - 3\sqrt{2}$ such that $P(3\sqrt{2}) = 0$.
And, we can build an infinity of polynomials of degree 2 such that $P(2 \sqrt{3}) = 0$, these polynomials are : $$P(x) = (x - 2 \sqrt{3})(x - k), k \in \mathbb{C}$$
We all must be very careful to mathematical rigor.
If we consider that $P \in \mathbb{Z}[X]$, it is obvious that there is no polynomials of degree 1 such that $P(2 \sqrt{3}) = 0$ because $\forall P \in \mathbb{Q}_1[X], P(X) = 0 \implies X \in \mathbb{Q}$, and, because $\mathbb{Z}_1[X] \subset \mathbb{Q}_1[X]$, this property is true even for polynomials with relative coefficients (and $2 \sqrt{3} \notin \mathbb{Q}$).
Then, for polynomials with degree 2, we use the quadratic formula :
$$x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$$, so we search solution to the equation :
$$\frac{-b \pm \sqrt{b^2 - 4ac}}{2a} = 2 \sqrt{3}, (a,b,c) \in \mathbb{Z}^3$$
We can directly see that we must have $b = 0$ because if that was not the case, we should have $x = k + l \sqrt{m}, k \neq 0$ knowing that b must be a relative number. Or, we see that the solution we are searching for is not looking like that.
So, because we have $b = 0$, we have $$x = \frac{\pm \sqrt{-4ac}}{2a}$$ with one of these two solutions equal to $2 \sqrt{3}$. Because we have $2\sqrt{3} \notin \mathbb{C} - \mathbb{R}$, we must have $-4ac > 0$ so $4ac < 0$.
We have so $$x = \pm 2 \frac{\sqrt{-ac}}{2a} = \pm \frac{\sqrt{-ac}}{a}$$
Then, we suppose $a > 0$ so we can write $$x = \pm \frac{ \sqrt{a} }{a} \times \sqrt{-c} = \pm \frac{\sqrt{-c}}{\sqrt{a}}$$ so we must have $\sqrt{-c} = \sqrt{3}$ and $1/\sqrt{a} = \pm 2$ which is not possible with $a \in \mathbb{Z}$
And, if we have $a < 0$, we have $$x = \pm \frac{\sqrt{c}}{\sqrt{-a}}$$
So we must have $c = 3$ and $1/\sqrt{-a} = \pm 2$ which is not possible with $a \in \mathbb{Z}$, QED.
EDIT : The proof is also valable for $x = 2^{1/3}$ and $3\sqrt{2}$