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