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