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