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