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