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