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