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