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