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