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