To do two-step equations with integers, simplify the whole numbers in the equation. Isolate x in theequation by adding or subtracting the opposite whole number to both sides of the equation. Divide both sides by the number next to x in the equation to solve for x.