you can replace the task with a void, a void would only run once, (it wouldn’t really make a difference in this scenario cause you don’t have a loop).
i was wrong in my previous statement, what would actually happen is, it would start your task and run both at the same time (multi-tasking) to achieve what you are looking for, you would use voids. a void pauses your current task, runs the code inside the void, and resumes code once the void is finished. your code would look like this
Oops I actually phrased my original question wrong. What I wanted to do was make the two motors start at the same time and then end at different times. I actually was able to test it (I used a few spare motors and a random cortex lying around) and it did achieve what I was looking for.