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