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