You wish to show that $c\mid(ma+nb)$, in other words, there exists a $k$ such that $ma+nb=ck$. This is exactly what the second line does, it shows that $ma+nb=c(me+nf)$.
You wish to show that $c\mid(ma+nb)$, in other words, there exists a $k$ such that $ma+nb=ck$. This is exactly what the second line does, it shows that $ma+nb=c(me+nf)$.