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