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