Start by calculating the amount of quizes
find the relation between 40 days and 120 days
[tex]\frac{120}{40}=3[/tex]this relation will give you the periods of 40 days that will happen in 120 days.
multiply the amount of quizzes by the relation factor
[tex]3\cdot4=12[/tex]the teacher will give 12 quizzes in 120 days
apply the same procedure for the essays
[tex]\frac{120}{60}=2[/tex][tex]2\cdot2=4[/tex]the teacher will give 4 essays in 120 days of school