10-7x=2-8x
We move all terms to the left:
10-7x-(2-8x)=0
We add all the numbers together, and all the variables
-7x-(-8x+2)+10=0
We get rid of parentheses
-7x+8x-2+10=0
We add all the numbers together, and all the variables
x+8=0
We move all terms containing x to the left, all other terms to the right
x=-8