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