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