compute total marks obtained in examinations