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