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