There are 3 zeroes since complex solutions come in conjugate pairs.
x = -3 → x + 3 = 0
x = 5 + i → x - (5 + i) = 0
x = 5 - i → x - (5 - i) = 0
Let's distribute the complex roots.
[x - (5 + i)]*[x - (5 - i)] = x2 - x(5 - i) - x(5 + i) + (5 + i)(5 - i)
= x2 - 5x - ix - 5x + ix + 25 - 5i + 5i - i2
= x2 - 10x + 26
What I did is to combine like terms. In other words, combine all the x's, i's, and constants. The i2 is -1. So add 1 to 25 from there.
Distribute x + 3 to each term and combine like terms.
(x + 3)(x2 - 10x + 26) = x3 - 10x2 + 26x + 3x2 - 30x + 78 = x3 - 7x2 - 4x + 78