Tìm giá trị lớn nhất của biểu thức:

M=(x-5)(x+1)-2(x+7)(x-2)+2(7x-1)

N=x2(1-x)(1+x)-2(x-2)(x+3)-2(3-x)