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