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