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