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