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