Example scores. Replace them with yours. Use your grade before the final.
A different final-exam setup
Replacement happens before dropping. The final itself is eligible to be dropped. Do not use this setup if your syllabus says otherwise.
The result is a percentage of the final exam. Extra credit is added separately below as course percentage points.
The answer is the average needed across the rest of the final. Use shares within the exam here, not shares of the whole course.