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