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