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