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