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