The passenger ship and the cargo ship depart from the two ports of A and B at the same time. The speed of the passenger ship is 24 km/h, and the speed of the cargo ship is 19 km/h. After 18 hours, the distance between the two ships is 50 km before they can meet. How many kilometers are there between the two ports of A and B?
客、货两船同时从甲乙两港对开，客船的速度是24千米/时，货船的速度是19千米/时，18小时后两船还相距50千米才能相遇．甲乙两港相距多少千米？
<gadget id="calculator">24 + 19</gadget>
<output>43</output>

<gadget id="calculator">43 * 18</gadget>
<output>774</output>

<gadget id="calculator">774 + 50</gadget>
<output>824</output>

<result>824</result>