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