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