Hi siddharth,
Thats wat i was asking to you, The day on which the person returns to A in the same day 25th or the next day 26th,
Anyways, if he returns on the same day i.e. 25th,
His total journey on that day (from 2 pm to 9 pm)=7 hrs
One hr he took rest.
total=6 hrs
Hence, journey of= 3 hrs in one direction
Now he left from A at 2pm and reached B at 3am.=13 hrs.
Hence,
T+D=13
where T=3
D=10