Factor by grouping.
ab -7a + 6b -42
ab -7a + 6b -42