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