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