Since, (x−1) is a factor of the given polynomial p(x)
Hence, p(1)=0
⇒p(1)=a+b+c=−1.....(i)
but given that
a+b=1.....(ii)
solving (i) and (ii), we get
c=−2
And,
(x−2) is also a factor of the given polynomial p(x)
Hence, p(2)=0
⇒p(2)=8+4a+2b−2=0
⇒4a+2b+6=0
⇒2a+2(a+b)+6=0
⇒2a+8=0
⇒a=−4
⇒b=5 (by solving (ii))