If the function f(x)=⎧⎨⎩x+2 if x<2ax2+bx+3 if 2≤x<32x+a+bif x≥3 is continous, then the value of (a2+b2) is