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