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