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