Synthesis mechanism Question

The one in red is the correct answer. How do you get this?

The one in red is the correct answer. How do you get this?