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