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