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