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