the average score of a cricketer in 2 matches is 30 and in other 3 matches is 40 . then find the average score in all the 5 matches ?
n0 = 2.0
n1 = 30.0
n2 = 3.0
n3 = 40.0
n4 = 5.0
t0 = n0 * n1
t1 = n2 * n3
t2 = t0 + t1
answer = t2 / n4
print(answer)