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