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