When Xiao Ming's home arrives at school, he walks for the first half of the distance and takes a car for the second half of the distance; when he returns home from school, he takes the car for the first (1/3) time and walks for the last (2/3) time. As a result, it took 20 minutes longer to go to school than to go home. It is known that Xiao Ming walks 80 meters per minute. Travel 240 meters per minute by car. How many kilometers did Xiao Ming travel from home to school?
小明家到学校，前一半路程步行，后一半路程乘车；他从学校回家时，前(1/3)时间乘车，后(2/3)时间步行．结果去学校的时间比回家所用的时间多20分钟，已知小明步行每分钟行80米．乘车每分钟行240米．小明从家到学校的路程是多少千米？
<gadget id="calculator">24_000 / 1_000</gadget>
<output>24</output>

<result>24</result>