Let p(x)=2x3+ax2+4x−12,
q(x)=x3+x2−2x+a.
From polynomial remainder theorem, When p(x) is divided by (x-3) then the remainder is p(3).
Now, p(3)=2(3)3+a(3)2+4(3)−12
=2(27)+a(9)+12−12
=54+9a ....(1)
When q(x) is divided by (x−3) the remainder is q(3).
Now, q(3)=2(3)3+(3)2+2(3)+a
=(27)+(9)−6+a
=30+a ......(2)
Given that p(3)=q(3).
That is, 54+9a=30+a (By (1) and (2))
⇒9a−a=30−54
⇒8a=−24
∴a=−248=−3
Substituting a=-3 in p(3), we get
p(3)=54+9(−3)=54−27=27
∴ The remainder is 27.