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