you have to gather like terms. for example numbers with the same letter go together. when you gather them, as the number with the letter move across the equal sign, they change operation. for example,
[tex]7n + 2 = 4n + 17[/tex]
becomes
[tex]7n - 4n = - 2 + 17[/tex]