X^2 + ( P x X ) + Q = 0
This might just be:
$$x^2+Px+Q=0$$
in which case:
$$x=\frac{-P\pm \sqrt{P^2-4Q}}{2}$$
.
You cannot solve this because there are 2 variables. You need 2 equations to solve for 2 variables.