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