A rail engine is moving at a uniform speed of 30 km per hour towards a place A. When the engine is still 20 km away from A, an insect starts at A and shuttles between A and engine at a uniform speed of 42 km per hour. The total distance travelled by the insect, by the time engine reaches A is, in km.