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