Ship A departs from Nanjing and travels 51.5 kilometers per hour. Ship B departs from Shanghai and travels 60.5 kilometers per hour. The two ships set off at the same time and met in 3.5 hours. How many kilometers is the waterway from Nanjing to Shanghai?
甲船从南京出发，每小时行51.5千米，乙船从上海出发，每小时行60.5千米．两艘船同时出发，3.5小时相遇，南京到上海的水路长多少千米？
<gadget id="calculator">51.5 + 60.5</gadget>
<output>112</output>

<gadget id="calculator">112 * 3.5</gadget>
<output>392</output>

<result>392</result>