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