M = (x + 7)(5x + 2) - 3(5x + 2)2
N = 7x(2x + 3) + 2x + 3