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