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