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