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