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