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