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