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