Creating and solving a linear inequality