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