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