The teacher found a way to help her student pass the exam