a man purchased earphone on friday . but he forgot how much it cost . the data he have are mean expenditure of all 7 days is 500 . expenditure on mon , tue , wed , thurs , sat , sun are 450600 , 400500 , 550300 . on friday he purchased 3 things one earphone , one pen and one notebook . pen cost 30 and notebook cost 50 . then what is cost of earphone ?
n0 = 7.0
n1 = 500.0
n2 = 450600.0
n3 = 400500.0
n4 = 550300.0
n5 = 3.0
n6 = 30.0
n7 = 50.0
t0 = n1 + 100.0
t1 = n1 + n7
t2 = n0 * n1
t3 = n1 - n7
t4 = n1 - 100.0
t5 = t0 + t3
t6 = t4 - 100.0
t7 = t5 + t4
t8 = n1 + t7
t9 = t8 + t1
t10 = t9 + t6
t11 = t2 - t10
t12 = t11 - n6
answer = t12 - n7
print(answer)