Let a be a constant. If the equation 32x+4=a(31x+2) has infinitely many solutions, what is the value of a?
31
32
2
4