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