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