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