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