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