Hello!
We can use the formula below to write a quadratic equation in the factored form, as we know the roots of it:

Let me explain it:
We will invert the signal of each root and sum it to x. Then, we will multiply the terms.
Let's replace with the values:

So, the equation in the factored form is (x) * (x+2) = 0.