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