a school has 4 section of chemistry in class x having 40 , 35 , 45 and 42 students . the mean marks obtained in chemistry test are 50 , 60 , 55 and 45 respectively for the 4 sections . determine the overall average of marks per student .
n0 = 4.0
n1 = 40.0
n2 = 35.0
n3 = 45.0
n4 = 42.0
n5 = 50.0
n6 = 60.0
n7 = 55.0
n8 = 45.0
n9 = 4.0
t0 = n1 + n2
t1 = n1 * n5
t2 = n2 * n6
t3 = n3 * n7
t4 = n3 * n4
t5 = t1 + t2
t6 = n3 + t0
t7 = t5 + t3
t8 = n4 + t6
t9 = t7 + t4
answer = t9 / t8
print(answer)