I need help I have to answer this question and I don't understand.

4+x=8-2

4 + x = 8 - 2

Let's get the numbers on one side of the equal sign and the unknown on the other side. To do that we need to subtract 4 from each side.

x + 4 - 4 = 8 - 2 - 4
x = 8 - 6
x = 2