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