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