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