The distance from city A to city B is 360 kilometers. A passenger took a car from city A to city B. When the car drove 1/3 of the way, the passenger fell asleep. When he woke up, he found that The distance traveled is exactly (1/3) of the distance traveled before falling asleep. How many kilometers is the car away from City B when he wakes up?
从甲城到乙城相距360千米，一位旅客从甲城坐车到乙城，当汽车开出全程的(1/3)时，这位旅客睡着了，醒来时，他发现剩下的路程正好是睡着前行驶路程的(1/3)，他醒来时汽车离乙城还有多少千米？
<gadget id="calculator">1 / 3</gadget>
<output>1/3 = around 0.333333</output>

<gadget id="calculator">360 * (1/3) * (1/3)</gadget>
<output>40</output>

<result>40</result>