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