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