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