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