Solve linear equations and inequalities in one variable