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