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