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