For student 3 in subject 2, the mid and final scores were swapped. Fix it with one UPDATE.
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.