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