若x^2+nx+m能因式分解为(x+2)(x-3),则m+n=