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