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