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