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