Solving Equations with Rational Numbers