This is not really possible in standard Moodle, but you should look at installing one of the add-on question types for Maths like https://moodle.org/plugins/qtype_stack or https://moodle.org/plugins/qtype_algebra
Quiz
Equivalence question for an equation
This discussion has been locked so you can no longer reply to it.