If 2 is a root of the quadratic equation 3x2+ax−2=0 and the quadratic equation a(x2+6x)−b=0 has equal roots find the value of b.