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