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