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