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