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