There are 6 baskets on the table. Each basket has 20, 12, 10, 4, 17 and 2 apples. Emma chose sixth, Matt chose first, Liam chose third, John chose second, Sean chose fourth, and Olivia chose fifth. How many apples did John and Liam choose in total?