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