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