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