Two cars, A and B, drive from east to west at the same time. Car A travels 56 kilometers per hour, and car B travels 48 kilometers per hour. The two cars meet at a distance of 40 kilometers from the midpoint. How many kilometers is the distance between the two places?
甲、乙两辆汽车同时从东西两地相向开出，甲车每小时行56千米，乙车每小时行48千米．两车距中点40千米处相遇．东西两地相距多少千米？
<gadget id="calculator">56 + 48</gadget>
<output>104</output>

<gadget id="calculator">40 * 2</gadget>
<output>80</output>

<gadget id="calculator">56 - 48</gadget>
<output>8</output>

<gadget id="calculator">80 / 8</gadget>
<output>10</output>

<gadget id="calculator">104 * 10</gadget>
<output>1_040</output>

<result>1_040</result>