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