Given: #x+2=4#
We need to end up with #x# on its own and one one side of the = and everything else on the other side.
So we need to get rid of the 2 from #x+2 #. We do this by changing it to 0. This is because anything +0 does not change in value.
Subtract #color(red)(2)# from #ul("both")# sides of the =
#color(green)(x+2color(white)("d")=color(white)("d")4 color(white)("dddd")->color(white)("dddd")xcolor(white)("d")ubrace(+2color(red)(-2))color(white)("d")=color(white)("d")4color(red)(-2)#
#color(green)(color(white)("ddddddddddddddddddddddd.d")darr)#
#color(green)(color(white)("dddddddddddddd")->color(white)("dddd")ubrace(xcolor(white)("d")+0)color(white)("d.d")=color(white)("d")2)#
#color(green)(color(white)("ddddddddddddddddddddd.d")darr)#
#color(green)(color(white)("dddddddddddddd")->color(white)("dddddd")xcolor(white)("d")=color(white)("d")2)#