The polynomials are all continuous in the domains given.
The limit of the first expression as x-> 2 is 4.
This means 4a-2b+3=4 => 4a - 2b =1
The last 2 expressions need to be equal at x=3:
9a-3b+3=12-a+b => 10a - 4b =9
Multiply the 1st equation by 2 and subtract: 2a=7 => a=7/2
Plug this into either equation to get b=13/2