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