Initial distance between the two men = 40km/hr×0.25hr=10km
Relative velocity of two men = 45km/hr−40km/hr=5km/hr
Therefore, time taken to cover the distance = 10km5km/hr=2hr
Therefore, b overtakes a 2 hours after b started. Also, the distance from the house is:
45km/hr×2hr=90km