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