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