Five Runners and a Tight Race
Five friends (Ana, Beto, Carla, Dani and Eva) ran a race with no ties, so each finished in a different position, from first to fifth.
You know that: (1) Ana finished before Beto, but not immediately before him, meaning at least one other person finished between them. (2) Carla finished right after Dani, with nobody between them. (3) Beto finished before Carla. (4) Eva finished neither first nor last.
In what order did the five finish?
See solution
The order was: Ana, Eva, Beto, Dani, Carla.
By (2), Dani and Carla are side by side, with Dani ahead. By (3), Beto finishes before Carla, and since he can't hold Dani's spot, he finishes before Dani. With (1), Ana finishes before Beto. So the sequence is Ana, Beto, Dani, Carla, with Eva still to be placed in some gap.
Eva can't go between Dani and Carla (that would separate them, against (2)). If she goes between Beto and Dani, Ana and Beto would be consecutive, against (1). First or last place contradicts (4). The only possible gap is between Ana and Beto, which also satisfies (1). Result: Ana, Eva, Beto, Dani, Carla.