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