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