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