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