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