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