if 5x-17=-x+7, then x=
5x - 17 = -1x + 7 add 17, 1x to both sides
6x = 24 divide both sides by 6
x = 4