visitors to show were charged rs . 15 each on the first day . rs . 7.50 on the second day , rs . 2.50 on the third day and total attendance on the 3 days were in ratio 2 : 5 : 13 respectively . the average charge per person for the whole show is ?
n0 = 15.0
n1 = 7.5
n2 = 2.5
n3 = 3.0
n4 = 2.0
n5 = 5.0
n6 = 13.0
t0 = n5 + n6
t1 = n0 * n4
t2 = n1 * n5
t3 = n2 * n6
t4 = t1 + t2
t5 = n4 + t0
t6 = t4 + t3
answer = t6 / t5
print(answer)