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