In the equation 3x+7=kx+m, k and m are constants. If the equation has infinitely many solutions, what is the value of k+m?
3
7
10
21