Get overall maximum score of complete exercise (multiple questions)

In our Moodle LMS we have exercises that consist of multiple questions. To proceed to the next exercise, a student has to have correctly solved 50% of the questions of one exercise. So we need to check, if 50% in total is reached. Could someone tell me, how we can do this by the xAPI? I know I get the max score of ONE question by event.result.score.max(), but how can I get the overall max score of multiple questions? Or is this much more a moodle question instead of a H5P question?

Content types: