Solving equations with coefficients and fractions