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