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