well i came up with a solution for this which is feel is maybe right but i dont get the ans as 72.
the process is as follows:
assuming both the boys walk with same speed i.e. Sb and speed of train as St and lenght of the train be 'l'
1st boy : l/(St-Sb) 20 secs and 2nd boy : l/(St+Sb) 18 secs
solving above eqtns we get Sb 1/19 St
now time taken by two boys to meet distance travelled by train in 10 mins / Sb+Sb
10 * 60 secs * St / 2 Sb
substituting Sb 1/19 St we get answer as 95 secs
Now i m not sure if i made any calculation mistake or some error in considering values but thts wat i get as answer.