Given that x³+4x²+bx+b is exactly divisible by x+2,but leaves a remainder a³ when divided by x-a,calculate the value of a and b.