There is a distance of 240 kilometers between the two docks A and B, the dock A is upstream, and the dock B is downstream. Two ships, A and B, set off from the A and B docks at the same time and travel towards each other for 3 hours to meet each other. If Ship A catches up with Ship B traveling in the same direction for 24 hours, and the water speed is known to be 3 km/h, how long will it take Ship A to get from Pier A to Pier B?
A、B两个码头相距240千米，A码头在上游，B码头在下游．甲乙两船分别从A、B两码头同时出发相向而行3小时相遇．如果同向而行24小时甲船追上乙船，已知水速是3千米/时，求A码头到B码头甲船要用几小时？
<gadget id="calculator">90 / 2</gadget>
<output>45</output>

<gadget id="calculator">45 + 3</gadget>
<output>48</output>

<gadget id="calculator">240 / 48</gadget>
<output>5</output>

<result>5</result>