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