Input (grade 9): The exams are marked out of 150: 100 or more is a pass; 120 or more is a pass with merit; 130 or more is a pass with distinction.
Output (grade 7): They are marked out of 100: 66 or more is a pass; 80 or more is a merit; 90 or more is a distinction.