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