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