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