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