Linear equations and inequalities