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