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