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