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