x and y are two towns . ganesh covers the distance from x to y at an average speed of 43 km / hr . however , he covers the distance from y to x at an average speed of 34 km / hr . his average speed during the whole journey in km / hr . is :
n0 = 43.0
n1 = 34.0
t0 = n0 - 10.0
t1 = t0 + 100.0
t2 = t1 + t1
t3 = t1 / n0
t4 = t1 / n1
t5 = t3 + t4
answer = t2 / t5
print(answer)