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