Xiao Zhang drives from place A to place B to deliver goods, and the speed when returning from place B to place A is three times the speed when going there, and the time is reduced by 40 minutes. How many minutes did it take Zhang to get from A to B when delivering the goods?
小张开车从甲地到乙地送货，从乙地返回甲地时速度是去时速度的3倍，而时间减少了40分钟．小张送货时从甲地到乙地用了多少分钟．
<gadget id="calculator">3 * 40</gadget>
<output>120</output>

<gadget id="calculator">3 - 1</gadget>
<output>2</output>

<gadget id="calculator">120 / 2</gadget>
<output>60</output>

<result>60</result>