How do I evaluate math input if there's latex?

I’m not sure if it’s possible to evaluate correctness for a numeric value in a math input if I use an initial Latex set up to show what the numbers are equivalent to. Is there another way to get this page to show correct? (should I compare the latex of the input to some options?)

I have two math inputs on this screen, and this is the CL in each:
initialLatex: B'C'=
correct: this.numericValue = 2.4

initialLatex: \frac{k}{h}=
correct: this.numericValue = 0.5

Any suggestions are helpful.

You can use parseEquation:

correct: numericValue(`${parseEquation(this.latex).rhs}`)=2.4

Perfect! That did the trick.

Thanks for your assistance.