Find x, and then set to arrive at y speed, and don't be late.
Y/50-24/60=Y Y/75+24/60, you can calculate y.