To factor $ mn-6m^2-3n+18m $ we can use factoring by grouping.
Group $ \color{blue}{ mn }$ with $ \color{blue}{ -6m^2 }$ and $ \color{red}{ -3n }$ with $ \color{red}{ 18m }$ then factor each group.
$$ \begin{aligned} mn-6m^2-3n+18m &= ( \color{blue}{ mn-6m^2 } ) + ( \color{red}{ -3n+18m }) = \\ &= \color{blue}{ m( n-6m )} \color{red}{ -3( n-6m ) } = \\ &= (m-3)(n-6m) \end{aligned} $$