You might want to let z = x + iy so it's easier to distinguish between the real and complex parts.

To find the third root, remember that if a complex number is a root, then its conjugate is also a root.

Then P(Z) will equal the product of its factors, and (remembering to match real with real, imaginary with imaginary!) solve for a,b,c.