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