From point A to point B, it takes 4 hours for a passenger car and 5 hours for a truck. Now the two cars are traveling towards each other from A and B respectively. When they meet, the bus travels 40 kilometers longer than the truck. The distance between A and B is How many kilometers?
从A地到B地，客车需要4小时，货车需要5小时，现在两车分别从A、B两地相向而行，相遇时，客车比货车多行了40千米，A、B两地相距多少千米？
<gadget id="calculator">1 / 4</gadget>
<output>1/4 = around 0.25</output>

<gadget id="calculator">1 / 5</gadget>
<output>1/5 = around 0.2</output>

<gadget id="calculator">(1/4) + (1/5)</gadget>
<output>9/20 = around 0.45</output>

<gadget id="calculator">1 / (9/20)</gadget>
<output>20/9 = around 2.222222</output>

<gadget id="calculator">(1/4) * (20/9)</gadget>
<output>5/9 = around 0.555556</output>

<gadget id="calculator">(1/5) * (20/9)</gadget>
<output>4/9 = around 0.444444</output>

<gadget id="calculator">(5/9) - (4/9)</gadget>
<output>1/9 = around 0.111111</output>

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

<result>360</result>