Two ships depart from two piers at the same time. Ship A travels 40 nautical miles per hour, and boat B travels 50 nautical miles per hour. After 5 hours, the two ships meet. What is the distance between the two piers?
两船同时从两个码头相对开出，甲船每小时行40海里，乙船每小时行50海里，5小时后，两船相遇，两个码头间的距离是多少海里？
<gadget id="calculator">40 + 50</gadget>
<output>90</output>

<gadget id="calculator">90 * 5</gadget>
<output>450</output>

<result>450</result>