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