If x+2 is a factor of x2+mx+14, then m =
f (x) = x2 + mx + 14
Since, (x +2) is a factor of f (x), so
f (-2) =0
(-2)2 + m (-2) + 14 = 0
18 - 2m = 0
m = 9