Evaluating expressions in a table

With my inexperience with CL…

Can I code the correctness of a table with the following characteristics?

Some of the cells will have expressions solutions. The solutions will be a single variable, preferrably x or y.

Some of the cells will be left blank. (isBlank)

Here is an example that could help:table example • Activity Builder by Desmos Classroom

I used latex matching for x and y on the first screen and pattern matching on the second screen. Latex matching is simpler to code but more brittle because it has to match exactly with what the student typed. Pattern matching takes a bit more work to learn and set up but allows for more robust comparisons. In this case, because the entry is just a single letter, latex is sufficient. But you will need pattern matching for more complex expressions.