const left = algebra.parse("x / 3 - 3"); const right = algebra.parse("x / 5 + 1"); const eq = new algebra.Equation(left, right); const answer = eq.solveFor("x"); katex.render(algebra.toTex(eq), question); katex.render("x=" + algebra.toTex(answer), result);