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