Two-step equations with variables on both sides