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