$ \color{blue}{ 8x^{3}+18x^{2}-17x-42 } $ is a polynomial of degree 3. To find zeros for polynomials of degree 3 or higher we use Rational Root Test.
The Rational Root Theorem tells you that if the polynomial has a rational zero then it must be a fraction $ \dfrac{p}{q} $, where p is a factor of the trailing constant and q is a factor of the leading coefficient.
The factors of the leading coefficient ( 8 ) are 1 2 4 8 .The factors of the constant term (-42) are 1 2 3 6 7 14 21 42 . Then the Rational Roots Tests yields the following possible solutions:
$$ \pm \frac{ 1 }{ 1 } , ~ \pm \frac{ 1 }{ 2 } , ~ \pm \frac{ 1 }{ 4 } , ~ \pm \frac{ 1 }{ 8 } , ~ \pm \frac{ 2 }{ 1 } , ~ \pm \frac{ 2 }{ 2 } , ~ \pm \frac{ 2 }{ 4 } , ~ \pm \frac{ 2 }{ 8 } , ~ \pm \frac{ 3 }{ 1 } , ~ \pm \frac{ 3 }{ 2 } , ~ \pm \frac{ 3 }{ 4 } , ~ \pm \frac{ 3 }{ 8 } , ~ \pm \frac{ 6 }{ 1 } , ~ \pm \frac{ 6 }{ 2 } , ~ \pm \frac{ 6 }{ 4 } , ~ \pm \frac{ 6 }{ 8 } , ~ \pm \frac{ 7 }{ 1 } , ~ \pm \frac{ 7 }{ 2 } , ~ \pm \frac{ 7 }{ 4 } , ~ \pm \frac{ 7 }{ 8 } , ~ \pm \frac{ 14 }{ 1 } , ~ \pm \frac{ 14 }{ 2 } , ~ \pm \frac{ 14 }{ 4 } , ~ \pm \frac{ 14 }{ 8 } , ~ \pm \frac{ 21 }{ 1 } , ~ \pm \frac{ 21 }{ 2 } , ~ \pm \frac{ 21 }{ 4 } , ~ \pm \frac{ 21 }{ 8 } , ~ \pm \frac{ 42 }{ 1 } , ~ \pm \frac{ 42 }{ 2 } , ~ \pm \frac{ 42 }{ 4 } , ~ \pm \frac{ 42 }{ 8 } ~ $$Substitute the POSSIBLE roots one by one into the polynomial to find the actual roots. Start first with the whole numbers.
If we plug these values into the polynomial $ P(x) $, we obtain $ P(-2) = 0 $.
To find remaining zeros we use Factor Theorem. This theorem states that if $\frac{p}{q}$ is root of the polynomial then this polynomial can be divided with $ \color{blue}{q x - p} $. In this example:
Divide $ P(x) $ with $ \color{blue}{x + 2} $
$$ \frac{ 8x^{3}+18x^{2}-17x-42 }{ \color{blue}{ x + 2 } } = 8x^{2}+2x-21 $$Polynomial $ 8x^{2}+2x-21 $ can be used to find the remaining roots.
$ \color{blue}{ 8x^{2}+2x-21 } $ is a second degree polynomial. For a detailed answer how to find its roots you can use step-by-step quadratic equation solver.