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