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