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