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