The quadratic x^2 + px + 8 = 0 has roots -4 and -2. Find p.
Note
Use Vieta's formula for x² + px + q = 0. For this form, the sum of the roots is -p and the product of the roots is q. The given roots are -4 and -2, so their sum is -4 + -2 = -6. Since sum = -p, we have -p = -6, which gives p = 6. The product -4×-2 = 8 also matches the constant term, so the roots are consistent. Therefore the correct answer is 6.
