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