Can't remember the way to solve for the variable. 5x + 6 = 7x. Answer is 3, but how to do other problems?

5x + 6 = 7x

Combine like terms.

6 = 7x - 5x

6 = 2x

3 = x