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