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