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