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