Let the speeds of train X and Y be Sx and Sy. They cross each other at 1:20 PM, meaning train X travelled for 8.33 hours (25/3 hours) while train Y travelled for 5.33 hours (16/3 hours), so the total distance is Sx times 25/3 plus Sy times 16/3. Since they reach their destinations at the same time, the remaining distance for train X is covered by Y in that time, and the remaining distance for Y is covered by X. This means the time taken by train Y to reach Howrah equals the time taken by train X to reach Prayagraj, which implies (Sx times 16/3) divided by Sy equals (Sy times 25/3) divided by Sx. Solving this gives the ratio Sx to Sy as 5 to 4. The total time taken by train X to complete the journey is its travel time to the crossing point plus the remaining time. The remaining time is the distance covered by train Y divided by the speed of train X, which calculates to 6 hours and 40 minutes. Adding this to the crossing time of 1:20 PM gives a final arrival time of 8:00 PM.