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