Hi

I have been working on this problem for days and i think im just missing a concept or something. the question is;

Let f(x)={cos (pi*x/2) +a if x<-2

{100 if x=-2

{2x^2 +b if -2<x<0

{2^x +1 if x>0 where a and b are constants. Find a and b for which both lim x-->0 f(x) and lim x-->-2f(x) exist.

So far i work it out and i can get either a=11 and b=2 or a=101 and b=92 but with these answers f(x) isnt continuous.

Help meh pleaaasseee!! (with working would be great )

THANK YOU!!!