5x + 2 = 7x-8, shift term to 7x-5x = - 8 + 2 Why did the plus sign go to the back when it was in the front and a minus sign was added to the front of 8? Why didn't the plus sign go to the back instead of the front

5x + 2 = 7x-8, shift term to 7x-5x = - 8 + 2 Why did the plus sign go to the back when it was in the front and a minus sign was added to the front of 8? Why didn't the plus sign go to the back instead of the front

Wrong
Originally, it was minus 8, but after the item was moved, it should be plus 8
So 7x-5x = 2 + 8
2x=10
x=5