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