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