Question can be done using the speed and time inverse relation concept.
If the speed gets multiplied by 2 then the travel time gets divided by 2 (since speed is inversely proportional to time when distance is constant)
So let time taken by Train to go from A to B (excluding stops) be t hours
So total time including stops = t + 3 + 1 hours
Time taken to travel from B to A = t/2 hours (excluding stops)
Hence total time including stops would be (t/2 + 5 ) hours
Since the question says both trips took the same amount of time
t+3 = t/2 + 5 | Mind you here on the LHS take t + 3 and not t+4 cause the extra 1 hour is not part of travel time (this was the mistake I made the first time
So t = 4
So total time for round trip = t + 3 + 1 + t/2 + 5
i.e. 4 + 3 + 1 + 2 + 5 i.e. 15