John and Jane decide to run a 14 km race. They start at the same point and run 8 km uphill, then return 6 km downhill to the starting point. John receives a 12 minute head start and runs at a rate of 10 km/hr uphill and 15 km/hr downhill. Jane runs at 12 km/hr uphill and 18 km/hr downhill. How far from the top of the hill are they when they pass each other going in opposite directions?