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