tourist purchased a total of 30 travelers checks in $ 50 and $ 100 denominations . the total worth of the travelers checks is $ 1800 . how many checks of $ 50 denominations can he spend so that average amount ( arithmetic mean ) of the remaining travelers checks is $ 100 ?
n0 = 30.0
n1 = 50.0
n2 = 100.0
n3 = 1800.0
n4 = 50.0
n5 = 100.0
t0 = n0 * n5
t1 = n5 - n1
t2 = t0 - n3
answer = t2 / t1
print(answer)