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