We are moving some of our placement tests into Moodle, and I'm working on the Math placement test. They have a complex grade calculation for their first placement test, and I'm trying to figure out how to implement it in Moodle. They have a quiz with 52 questions. Questions 1 - 32 are Part 1(X) and questions 33 - 52 are Part 2 (Y). They calculate their placement with this formula:

If (X>= 18) and (Y>=8) and (Y>= -1.8*X + 45) then place in course 1.

I think I have two problems with this. I'd like to convert this type of calculation into using some kind of weighting on the questions in the quiz. But then I also need to identify the two question parts separately. My assumption is that I need to separate them into two quizzes, but the department is not excited about that for the student experience.

Is there a way to do this?