Consider the given equation,
⇒5m2n−10mn2+12m−24n
⇒5m2n+12m−10mn2−24n
⇒m(5mn+12)−5n(mn+12)
⇒(5mn+12)(m−5n)
Hence, this is the answer.