The formula to calculate an average score is the following
where ai represents each individual grade, and n the number of values
Mahdi already has 5 grades: 92, 89, 85, 89 and 90
He will take a test that counts as 2, therefore the number of values will be 7
Since he needs to get a grade of 90 or higher for the semester, A = 90
Let's replace the above
where F is his grade on the final exam, which is worth double
Now, let's solve for F. I will show you the steps:
Thus, the minimum score must be at least 92.5