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