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