Solving Two-Variable Equations