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