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