Slingshot ride problem

Question

Hints

Answer