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