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