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