In the equation 2(x+4)=ax+8, a is a constant. If the equation has infinitely many solutions, what is the value of a?
2
4
8
16