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