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