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