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