5-2x=12
(if you change the side, you change the sign. take the negative 2x to the right it becomes positive and bring the positive 12 to the left it becomes negative)
Therefore
5-12=2x
-7 = 2x
(Bring the multiply by 2 on the right it becomes divide by 2)
-7/2 =x
-3.5 = x