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