The next day they ran the race again, but this time Harry started farther away from the school by the same amount as the winning margin the previous day, while Tom still started the same time as Harry, but again from home. Of course, since Harry still runs faster, the same ratio as the day before, he finished the difference in distances in less time than it would have taken Tom, but this time the gap at the end was reduced so that when Harry reached school, the amount by which Tom was behind had the two digits reversed from the preceding day.
How far was it from their home to school, and what was their gap at the end of each run when Harry arrived at school?