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