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