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