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