the average weight of 26 boys in a class is 50.25 kg and that of the remaining 8 boys is 45.15 kg . find the average weights of all the boys in the class .
n0 = 26.0
n1 = 50.25
n2 = 8.0
n3 = 45.15
t0 = n0 + n2
t1 = n0 * n1
t2 = n2 * n3
t3 = t1 + t2
answer = t3 / t0
print(answer)