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