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