Since we often use equations in quizzes, I'm opening this discussion in the quiz forum.
The question looks like this:
Try it at https://moodleformulas.org/course/view.php?id=36§ion=2 ↗
The way I describe above works fine. Does anyone know of an easier way to achieve the same result?