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