I am currently working on solving polynomials that contain complex numbers, the question posed is as follows:
Find $p$ and $q$. $$2z^2+pz+q$$ with roots at $-1-2i$ and $-1+2i$.
The solution is given as shown below:
I am not sure how this answer has been achieved, I know that the roots must cause the equation to equal to zero however on the first line of work with the 2 at the start of the right hand side I dont know where this two has came from. Please could someone help me with this?
Edit:
given a simple polynomial such as $$x^2+5x+6 = (x+2)(x+3)$$ however $$2x^2+5x+6 \neq 2(x+2)(x+3)$$
This is why I am unsure how this can be applied to an expression containing complex roots.

The $2$ at the right-hand side is the leading coefficient of the polynomial $2z^2+pz+q$ and so has to be pulled out:
$2z^2+pz+q = 2(z-z_1)(z-z_2)$
where $z_1,z_2$ are the conjugate roots.