How do midterm and final exams affect the average?