If the LCM of the polynomials f(x)=(x+1)5(x+2)a and g(x)=(x+1)b(x+2)a is (x+1)a(x+2)b, then find the minimum value of a+b from the following options.