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