X hails taxi which gives Y a ride. X sues driver, taxi company, Y. As judge, decide.

After work, X stayed in front of his company building to get a taxi home. She later saw a taxi operated by ABC Taxi Company and was the first one to hail it. Unfortunately, the taxi driver, instead of going toward her, gave Y, another passenger, a ride home. Angry, X filed a complaint against Y, the taxi driver and ABC Taxi Company. If you were the judge, what would you do?