To factor $ 5w^{3}-6w^{2}+25w-30 $ we can use factoring by grouping:
Group $ \color{blue}{ 5x^{3} }$ with $ \color{blue}{ -6x^{2} }$ and $ \color{red}{ 25x }$ with $ \color{red}{ -30 }$ then factor each group.
$$ \begin{aligned} 5w^{3}-6w^{2}+25w-30 = ( \color{blue}{ 5x^{3}-6x^{2} } ) + ( \color{red}{ 25x-30 }) &= \\ &= \color{blue}{ x^{2}( 5x-6 )} + \color{red}{ 5( 5x-6 ) } = \\ &= (x^{2}+5)(5x-6) \end{aligned} $$