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