Sam walks to the library at a speed of $40 \text{m}/\min $. He returns from the library at a cycling speed of $60 \text{m}/\min $. What was his average speed for the whole trip? 
Overseas Competition->Knowledge Point->Distance Word Problems->Distance Word Problems on Straight Road Overseas Competition->Knowledge Point->Word Problem Modules