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