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