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