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