Why this answer
How the required score is calculated
Your current grade contributes the non-final portion of the course. The final exam must supply the remaining points needed to hit the target.
Why the final often needs a high score: think of your course grade as a balance point. Your grade so far carries most of the weight, the final only its share, so to move the balance up by a few points the final has to sit much farther above your target than your current grade sits below it, (1 − w) ÷ w times as far. If that lands above 100%, the target is out of reach; the best you can do is (1 − w) × current + w × 100.
(90 − 66) ÷ 0.25 = 96%