2 motion how to?

I am following the course.
For this question. I am having difficult with it.
How can I solve the question?

Hello @hki,

You can find an example here: https://bitbucket.org/theconstructcore/manipulation_exercises_solutions/src/master/my_motion_scripts/src/execute_trajectory2.py

Best,