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