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