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