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