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