Instructions: The task is to generate the correct answer for a given math problem.
Input: Problem: 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 :
Output:
38