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