Sol. Let,
p(x)=3x3−5x2+kx−2q(x)=−x3−x2+7x+k
and
Put, x+2=0
Put, x=−2 in p(x) and q(x)
p(−2)=3(−2)3−5(−2)2+k(−2)−2=−24−20−2k−2=−2k−46
q(−2)=−(−2)3−(−2)2+7(−2)+k=8−4−14+k=−10+k
∵p(x) and q(x) leave the same remainder, when divided by x+2.
∴−2k−46=k−10
or, −3k=36
or, k=−12