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