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