Ященно I.v.

Brothers Petya and Vasya decided to shoot a funny video and post it on the internet. First, they filmed each of them walking from home to school - Vasya walked for 8 minutes, while Petya walked for 5 minutes. Then they came home and sat down at the computer to edit the video: they started Vasya's video from the beginning and Petya's video from the end (in reverse direction) simultaneously; at the moment when both brothers were at the same point on the path in both videos, they spliced Petya's video with Vasya's. The resulting video shows Vasya walking from home to school, and then at some point, he suddenly turns into Petya and walks backward home. What is the duration of the resulting video?