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