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