Xiao Ming travels by car. When the car drove the whole way (1/3), he fell asleep. When he wakes up, he finds that the remaining distance is (1/2) the distance traveled by the car before he went to sleep. What fraction of the total distance is the remaining distance? If the remaining distance is 20 kilometers, how many kilometers is the whole journey?
小明坐汽车去旅游．汽车行驶了全程的(1/3)时，他睡着了．醒来时，他发现剩下的路程是他睡觉前汽车所行驶路程的(1/2)．剩下的路程是全程的几分之几？如果剩下的路程是20千米，全程是多少千米？
<gadget id="calculator">1 / 6</gadget>
<output>1/6 = around 0.166667</output>

<gadget id="calculator">20 / (1/6)</gadget>
<output>120</output>

<result>120</result>