A ship goes back and forth between two ports A and B. It travels 30 kilometers per hour from port A to port B. When returning, it travels against the current and travels 20 kilometers per hour. Find the average speed of the ship going back and forth.
一艘轮船往返于甲乙两港之间，从甲港开往乙港每小时行驶30千米，返回时逆水而行，每小时行驶20千米，求这艘轮船往返的平均速度．
<gadget id="calculator">1 / 30</gadget>
<output>1/30 = around 0.033333</output>

<gadget id="calculator">1 / 20</gadget>
<output>1/20 = around 0.05</output>

<gadget id="calculator">(1/30) + (1/20)</gadget>
<output>1/12 = around 0.083333</output>

<gadget id="calculator">2 / (1/12)</gadget>
<output>24</output>

<result>24</result>