Synchronise videos with time

I have 2 videos with different durations. I want to synchronise the videos with the timer, both videos will finish when the timer reaches the end. However, the videos don’t play smoothly, any idea? Thanks

Here is the link to the pie file.
https://elekta.protopie.cloud/p/8aabc34a10dadd46a6001557