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