Solve linear equations in one unknown