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