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