solving a two step inequality