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