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