The solution to factor ma-mb+na-nb+pa-pb is (a-b)(m+n+p)