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