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