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