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