Solving linear algebra equations (variable on both sides, positive and negative values)