This is the sum of scores of the entire class i.e.40 students. Professor also knows the sum of scores of remaining 39 students. If she subtracts the sum of scores of 39 students from the sum of scores of 40 students, she can find the test scores of her student.
So, the test score of her student = 3400 - 3310 = 90.
This means the grade on the paper she lost was 90 .