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