Matrics to rewrite maths and physics exams