1 + 4x = -5 + 7x
1st step: you need to move 4x to the right and -5 to the left so that all the x's are in one place. 4x will be negative and -5 will be positive when you move them. So it will be:
1+5=7x-4x
2nd step:
3x=6
3rd step: you need to divide both sides into 3, because it is the common divisor.
x=2
1 + 4x = -5+7x
7x - 4x = 1 + 5
3x = 6
You can try to memorize the summary. However, it is better to understand the solution as a whole.