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