Solving Linear and Rational Equations