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