A cruise ship travels 8 kilometers per hour downstream and 7 kilometers per hour upstream. The two ships depart from the same place at the same time. Ship A travels downstream and then returns. Ship B goes upstream, then returns, and returns to the starting point at the same time after 2 hours. During these 2 hours, how many hours are the two ships A and B sailing in the same direction?
游船顺流而下每小时行8千米，逆流而上每小时行7千米，两船同时从同地出发，甲船顺流而下，然后返回．乙船逆流而上，然后返回，经过2小时同时回到出发点，在这2小时中有多少小时甲、乙两船的航行方向相同．
<gadget id="calculator">7 / 8</gadget>
<output>7/8 = around 0.875</output>

<gadget id="calculator">(7/8) * 2</gadget>
<output>7/4 = around 1.75</output>

<gadget id="calculator">1 + (7/8)</gadget>
<output>15/8 = around 1.875</output>

<gadget id="calculator">(7/4) / (15/8)</gadget>
<output>14/15 = around 0.933333</output>

<gadget id="calculator">2 - (14/15) - (14/15)</gadget>
<output>2/15 = around 0.133333</output>

<result>2/15 = around 0.133333</result>