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