Two cars, A and B, drive from city A and city B at the same time. Car A travels 42 kilometers per hour, and car B travels 58 kilometers per hour. Five hours later, the two cars met. How many miles is it from city A to city B?
甲、乙两辆汽车分别从A城和B城同时相对开出．甲车每小时行42千米，乙车每小时行58千米．5小时后两车相遇．A城到B城一共有多少千米？
<gadget id="calculator">42 + 58</gadget>
<output>100</output>

<gadget id="calculator">100 * 5</gadget>
<output>500</output>

<result>500</result>