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