The correct option is A -17
According to the factor theorem, if x−a is a factor of a polynomial f(x), then f(a) = 0.
Since, (x−1) is a factor of x2+4x+a ,
⇒ 12+4× 1+a = 0
⇒ a = -5
Since, (x−2) is a factor of x2+4x+b,
⇒ 22+4× 2+b = 0
⇒ b = -12
Hence, a+b = -5 + -12 = -17.