To factor $ 3ab-6b+4a^2-8a $ we can use factoring by grouping.
Group $ \color{blue}{ 3ab }$ with $ \color{blue}{ -6b }$ and $ \color{red}{ 4a^2 }$ with $ \color{red}{ -8a }$ then factor each group.
$$ \begin{aligned} 3ab-6b+4a^2-8a &= ( \color{blue}{ 3ab-6b } ) + ( \color{red}{ 4a^2-8a }) = \\ &= \color{blue}{ 3b( a-2 )} + \color{red}{ 4a( a-2 ) } = \\ &= (3b+4a)(a-2) \end{aligned} $$