Two men are walking in the same direction at the rate of 2 km h-1 and 3 km h-1 parallel to a railway line. A train engine travelling in the same direction overtakes them completely in 9 seconds and 12 seconds respectively. What is the length of the train engine?