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