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