Let A and B be the remainders when polynomials x3+2x2-5ax-7 and x3+ax2-12x+6 are divided by x+1 and x-2 respectively. If 2A+B=6 , find the value of a.