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