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