Solving a two-step equation with integers