This was a hypothetical scenario created that was once actually used as part of a job application. You could pick up the old lady, because she is going to die, and thus you should save her first; or you could take the old friend because he once saved your life, and this would be the perfect chance to pay him back. However, you may never be able to find your perfect mate again. The candidate who was selected had no trouble coming up with his answer. Guess what his answer was?
Candidate: I would give the car keys to my old friend and let him take the lady to the hospital. I would stay behind and wait for the bus with the partner of my dreams.