If the equation 5x+10=a(2x+4) has infinitely many solutions, where a is a constant, what is the value of a?
2
2.5
4
5