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