The equation 3k+m=n relates the variables k,m, and n. Which equation correctly expresses k in terms of m and n?
k=n−3m
k=3n−m
k=3n−m
k=3(n−m)