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