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