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