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