The task is to generate the correct answer for a given math problem.

Problem: two trains of length 180 m and 280 m are running towards each other on parallel lines at 42 kmph and 30 kmph respectively . in what time will they be clear of each other from the moment they meet ?
23 sec