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