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