Two cars start from two places at the same time and drive towards each other. Car A travels 40 kilometers per hour, and car B travels 4 kilometers longer than car A per hour. After 4 hours, the distance between the two cars is 14 kilometers after they meet. How many kilometers away are the places?
两辆汽车从两地同时出发相向开出，甲车每小时行40千米，乙车每小时比甲车多行4千米，经过4小时后，两车相遇后又相距14千米，两地相距多少千米？
<gadget id="calculator">40 + 40 + 4</gadget>
<output>84</output>

<gadget id="calculator">84 * 4</gadget>
<output>336</output>

<gadget id="calculator">336 - 14</gadget>
<output>322</output>

<result>322</result>