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