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