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