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