For certain values of k and m, the system
3a + 2b = 12 - 5a + 7b
8a + 6b = k - a - mb
has infinitely many solutions (a,b). What are k and m?