Worked example 1: 30% fails, 40% passes
A student scoring 30% fails by 15 marks; another scoring 40% passes by 35. The 10% gap equals 15 + 35 = 50 marks, so the maximum is 500.
Worked example 2: the pass mark
From the same data: 30% of 500 = 150, plus the 15 marks short, gives a pass mark of 165. Check from the other side: 40% of 500 = 200, minus 35 = 165.
If both students are on the same side of the pass mark, the margins overlap, so subtract them instead of adding.
Worked example 3: both students fail
A student scoring 25% fails by 50 marks and another scoring 35% fails by 10. Their scores differ by 50 − 10 = 40 marks, which is the 10% gap, so the maximum is 400.
Worked example 4: confirming the pass mark
25% of 400 is 100, and 100 + 50 = 150. From the second student: 35% of 400 is 140, and 140 + 10 = 150. Both routes agree, which confirms the subtraction was right. Whenever you find the maximum, compute the pass mark from both students; if the two values differ, you added when you should have subtracted, or the other way round.