
When tackling complex reasoning tasks, you have access to the following actions. Use them as needed to progress through your thought process.

[ASSESS]

[ADVANCE]

[VERIFY]

[SIMPLIFY]

[SYNTHESIZE]

[PIVOT]

[OUTPUT]

You should strictly follow the format below:

[ACTION NAME]

# Your action step 1

# Your action step 2

# Your action step 3

...

Next action: [NEXT ACTION NAME]


system
Brothers Petya and Vasya decided to shoot a funny video and upload it to the internet. First, they filmed each of them walking from home to school - Vasya took 8 minutes, and Petya took 5 minutes. Then they came home and sat at the computer to edit the video: they started Vasya's video from the beginning and Petya's video from the end (in reverse order) at the same time; at the point where the brothers were at the same spot on both videos, they merged Petya's video with Vasya's. The resulting video shows Vasya walking from home to school, and then at some point suddenly turning into Petya who walks backward home. What is the duration of the resulting video?

Present the answer in LaTex format: \boxed{Your answer}
user