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