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