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