If f(x)=x2+3x+2x2−7x+a and g(x)=x2−x−12x2+5x+b, then the values of a and b , if (x+1)(x−4) is HCF of f(x) and g(x), are
a=10;b=6
a=4;b=12
a=12;b=4
a=6;b=10
f(x)=x2+3x+2x2−7x+a =(x+1)(x+2)x2−7x+a
f(x) is divisible by (x+1)(x-4)
x2−7x+a is divisible by x−4 ⇒a=12
similarly g(x)=x2−x−12x2+5x+b
=(x-4)(x+3)(x2+5x+b)
x2+5x+b is divisible by x+1
⇒b=4