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