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