So the first set average at 61 if you get 40 and 51 if you get 0.
Assuming they count equal, then if you get the 40, you will simply have to maintain 60 in the second set of exams and assignments.
If you get 0, then you will need 70 to make up the ground.