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