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