The polynomial ax^2+bx+c is divisible by x-1 and has a remainder of 2 when divided by x+1 and has a remainder of 8 when divided by x-2. Find the value of a, b and c