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