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