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