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