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