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