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