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