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