Jim’s average speed is 8 km/h while walking and 12 km/h while jogging. It takes him 0.5 h longer to walk from the school to the pool than it takes him to jog the same distance. How far is it from the school to the pool?