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