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