There are 6 baskets on the table. Each basket has 8, 18, 0, 5, 19 and 17 apples. Matt chose first, Emma chose sixth, Sean chose third, Liam chose second, Olivia chose fifth, and John chose fourth. Who chose the basket with the least apples?