A={a,a+b,a+2b}B={a,ac,ac^2}若A=B求c的值