a class of 20 students took a science test . 10 students had an average ( arithmetic mean ) score of 80 . the other students had an average score of 60 . what is the average score of the whole class ?
n0 = 20.0
n1 = 10.0
n2 = 80.0
n3 = 60.0
t0 = n1 * n2
t1 = n0 - n1
t2 = n3 * t1
t3 = t0 + t2
answer = t3 / n0
print(answer)