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