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