A car drove from Zhaotong to Kunming. It traveled the entire distance in the morning (3/8). At this time, it was 40 kilometers away from the midpoint. How many kilometers is the distance from Zhaotong to Kunming?
一辆汽车从昭通开往昆明，上午行了全程的(3/8)，此时距中点有40千米，昭通到昆明的路程是多少千米？
<gadget id="calculator">1 / 2</gadget>
<output>1/2 = around 0.5</output>

<gadget id="calculator">3 / 8</gadget>
<output>3/8 = around 0.375</output>

<gadget id="calculator">(1/2) - (3/8)</gadget>
<output>1/8 = around 0.125</output>

<gadget id="calculator">40 / (1/8)</gadget>
<output>320</output>

<result>320</result>