Solve equations with variables on both sides: fractional coefficients