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