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