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