A passenger ship sails from port A to port B at a speed of 24 kilometers per hour. The cargo ship sails from Port B to Port A, and the journey is completed in 12 hours. Now they depart relatively at the same time, when they meet, the ratio of the distance traveled by the passenger ship and the cargo ship is 6:7, the distance between the two ports of A and B.
客船从甲港开往乙港，每小时行24千米．货船从乙港开往甲港，12小时行完全程．现同时相对开出，相遇时，客船和货船所行路程之比为6：7，甲乙两港间的距离．
<gadget id="calculator">24 / 6</gadget>
<output>4</output>

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

<result>336</result>