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