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